🐛 Trying stuff

This commit is contained in:
Mawoka
2022-04-15 19:58:12 +02:00
parent 4bd0bf25b3
commit 061c409dc3
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -21,10 +21,11 @@ async def join_game(sid, data):
) as resp:
resp_data = await resp.json()
if not resp_data["success"]:
print("CAPTCHA FAILED")
print("CAPTCHA FAILED", resp_data)
return
except KeyError:
print("CAPTCHA FAILED")
print("CAPTCHA FAILED", "KeyError")
return
redis_res = await redis.get(f"game:{data['game_pin']}")
if redis_res is None:
@@ -120,7 +120,6 @@
const res = await fetch(`/api/v1/utils/ip-lookup/${session_ip}`);
if (res.status === 200) {
locationData = await res.json();
console.log(locationData.lat, locationData.lon);
showMap = true;
}
};