🚨 deepsource

This commit is contained in:
Mawoka
2022-04-09 10:55:17 +02:00
parent 827af2ebdb
commit fd0b51d7e3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ async def join_game(sid, data):
@sio.event
async def start_game(sid, data):
async def start_game(sid, _data):
# print(sid, data, "START_GAME")
session = await sio.get_session(sid)
# print(session)
@@ -113,7 +113,7 @@ async def submit_answer(sid, data):
@sio.event
async def get_game_data(sid, data):
async def get_game_data(sid, _data):
game_pin = (await sio.get_session(sid))['game_pin']
game_data = await redis.get(f"game:{game_pin}")
if game_data is not None:
+2 -2
View File
@@ -25,12 +25,12 @@ export async function getSession(event) {
if (redis_res === null) {
const res = await fetch(`${process.env.API_URL}/api/v1/users/check`, {
headers: {
Cookie: `access_token=Bearer ${event.locals.token}`
Cookie: `access_token=Bearer ${event.locals.token}` // skipcq: JS-0378
}
});
if (res.ok) {
const json = await res.json();
//@ts-ignore
//@ts-ignore // skipcq: JS-0295
user_email = json.email;
} else {
user_email = null;