Commit 0869e748 authored by 曹高翔's avatar 曹高翔
Browse files

Merge remote-tracking branch 'origin/gui-master' into gui-master

parents 91508a74 44794f38
......@@ -7,7 +7,6 @@ __pycache__/
.idea/
*.sav
ui2py.bat
build.bat
build/
/build*
dist/
*.spec
\ No newline at end of file
......@@ -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