Merge pull request #21 from mawoka-myblock/deepsource-transform-d2a8d7cb
This commit is contained in:
@@ -15,8 +15,8 @@ async def join_game(sid, data):
|
|||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
try:
|
try:
|
||||||
async with session.post(
|
async with session.post(
|
||||||
"https://hcaptcha.com/siteverify",
|
"https://hcaptcha.com/siteverify",
|
||||||
data={"response": data["captcha"], "secret": settings.hcaptcha_key},
|
data={"response": data["captcha"], "secret": settings.hcaptcha_key},
|
||||||
) as resp:
|
) as resp:
|
||||||
resp_data = await resp.json()
|
resp_data = await resp.json()
|
||||||
if not resp_data["success"]:
|
if not resp_data["success"]:
|
||||||
@@ -170,4 +170,4 @@ async def get_final_results(sid, _data):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
results[str(i)] = json.loads(redis_res)
|
results[str(i)] = json.loads(redis_res)
|
||||||
await sio.emit("final_results", results, room=session['game_pin'])
|
await sio.emit("final_results", results, room=session["game_pin"])
|
||||||
|
|||||||
Reference in New Issue
Block a user