소스 검색

An executed task can't access the request object

Oz N Tiram 9 년 전
부모
커밋
47f060375d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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)