Commit 05166e57 authored by Zheng Yile's avatar Zheng Yile
Browse files

更改submit的返回类型

parent d1912714
......@@ -582,7 +582,9 @@ mutation ($eid: ID!, $pid: ID, $lang: Language!, $sol: String!, $a: JSONObject)
token
}
}'''})
return post(url=url, headers=headers, data=data)
res = post(url=url, headers=headers, data=data)
if not res: return False
return json.loads(res.text)
def _submit_not_from_pack(eid, lang, solutioncode):
headers = coding_base_headers.copy()
......@@ -602,7 +604,9 @@ mutation ($eid: ID!, $pid: ID, $lang: Language!, $sol: String!, $a: JSONObject)
token
}
}'''})
return post(url=url, headers=headers, data=data)
res = post(url=url, headers=headers, data=data)
if not res: return False
return json.loads(res.text)
def _get_data_not_from_pack(eid, codecnt=None):
if codecnt == None: codecnt = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment