Forráskód Böngészése

An executed task can't access the request object

Oz N Tiram 9 éve
szülő
commit
47f060375d
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      frank/frank.py

+ 1 - 2
frank/frank.py

@@ -194,8 +194,7 @@ def build_task(request_json):
      .     run command
      .     report success or failure
     """
-    request_as_json = request.get_json()
-    clone_dest = parse_branch_gh(request_as_json)
+    clone_dest = parse_branch_gh(request_json)
     repo_name = request_as_json["repository"]['name']
     try:
         o, e = clone(request_as_json['repository']['ssh_url'], clone_dest)