From a431981bb490ad67fddec192ee379820a974b9f7 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 10 Apr 2022 11:10:39 +0000 Subject: [PATCH] Format code with black This commit fixes the style issues introduced in 88a8cec according to the output from black. Details: https://deepsource.io/gh/mawoka-myblock/ClassQuiz/transform/0eaa4519-980e-466d-ac20-6de04a1f1c8b/ --- classquiz/socket_server/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classquiz/socket_server/__init__.py b/classquiz/socket_server/__init__.py index 6b1a4da..fac49ba 100644 --- a/classquiz/socket_server/__init__.py +++ b/classquiz/socket_server/__init__.py @@ -15,8 +15,8 @@ async def join_game(sid, data): async with aiohttp.ClientSession() as session: try: async with session.post( - "https://hcaptcha.com/siteverify", - data={"response": data["captcha"], "secret": settings.hcaptcha_key}, + "https://hcaptcha.com/siteverify", + data={"response": data["captcha"], "secret": settings.hcaptcha_key}, ) as resp: resp_data = await resp.json() if not resp_data["success"]: @@ -170,4 +170,4 @@ async def get_final_results(sid, _data): break else: 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"])