🐛 Trying stuff
This commit is contained in:
@@ -21,10 +21,11 @@ async def join_game(sid, data):
|
|||||||
) as resp:
|
) as resp:
|
||||||
resp_data = await resp.json()
|
resp_data = await resp.json()
|
||||||
if not resp_data["success"]:
|
if not resp_data["success"]:
|
||||||
print("CAPTCHA FAILED")
|
print("CAPTCHA FAILED", resp_data)
|
||||||
return
|
return
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print("CAPTCHA FAILED")
|
print("CAPTCHA FAILED", "KeyError")
|
||||||
|
|
||||||
return
|
return
|
||||||
redis_res = await redis.get(f"game:{data['game_pin']}")
|
redis_res = await redis.get(f"game:{data['game_pin']}")
|
||||||
if redis_res is None:
|
if redis_res is None:
|
||||||
|
|||||||
@@ -120,7 +120,6 @@
|
|||||||
const res = await fetch(`/api/v1/utils/ip-lookup/${session_ip}`);
|
const res = await fetch(`/api/v1/utils/ip-lookup/${session_ip}`);
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
locationData = await res.json();
|
locationData = await res.json();
|
||||||
console.log(locationData.lat, locationData.lon);
|
|
||||||
showMap = true;
|
showMap = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user