✨ Updated dependencies
This commit is contained in:
@@ -9,7 +9,7 @@ name = "pypi"
|
|||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
fastapi = "*"
|
fastapi = "*"
|
||||||
uvicorn = { extras = ["standard"], version = "*" }
|
uvicorn = "*"
|
||||||
python-socketio = "*"
|
python-socketio = "*"
|
||||||
ormar = { version = "*", extras = ["postgresql"] }
|
ormar = { version = "*", extras = ["postgresql"] }
|
||||||
passlib = "*"
|
passlib = "*"
|
||||||
@@ -20,7 +20,7 @@ python-multipart = "*"
|
|||||||
pydantic = "*"
|
pydantic = "*"
|
||||||
redis = "*"
|
redis = "*"
|
||||||
aiohttp = "*"
|
aiohttp = "*"
|
||||||
gunicorn = { version = "*"}
|
gunicorn = "*"
|
||||||
qrcode = "*"
|
qrcode = "*"
|
||||||
jinja2 = "*"
|
jinja2 = "*"
|
||||||
argon2-cffi = "*"
|
argon2-cffi = "*"
|
||||||
@@ -30,7 +30,7 @@ meilisearch = "*"
|
|||||||
bleach = "*"
|
bleach = "*"
|
||||||
bidict = "*"
|
bidict = "*"
|
||||||
xlsxwriter = "*"
|
xlsxwriter = "*"
|
||||||
pillow = ">=9.1.1"
|
pillow = "*"
|
||||||
authlib = "*"
|
authlib = "*"
|
||||||
httpx = "*"
|
httpx = "*"
|
||||||
itsdangerous = "*"
|
itsdangerous = "*"
|
||||||
@@ -41,7 +41,7 @@ pyotp = "*"
|
|||||||
minio = "*"
|
minio = "*"
|
||||||
xxhash = "*"
|
xxhash = "*"
|
||||||
arq = "*"
|
arq = "*"
|
||||||
thumbhash-python = "==1.0.0"
|
thumbhash-python = "*"
|
||||||
python-magic = "*"
|
python-magic = "*"
|
||||||
openpyxl = "*"
|
openpyxl = "*"
|
||||||
starlette = "*"
|
starlette = "*"
|
||||||
|
|||||||
Generated
+790
-699
File diff suppressed because it is too large
Load Diff
@@ -116,7 +116,7 @@ async def rejoin_game(sid: str, data: dict):
|
|||||||
"admin": False,
|
"admin": False,
|
||||||
}
|
}
|
||||||
await sio.save_session(sid, session)
|
await sio.save_session(sid, session)
|
||||||
sio.enter_room(sid, data.game_pin)
|
await sio.enter_room(sid, data.game_pin)
|
||||||
await sio.emit(
|
await sio.emit(
|
||||||
"rejoined_game",
|
"rejoined_game",
|
||||||
{
|
{
|
||||||
@@ -218,7 +218,7 @@ async def join_game(sid: str, data: dict):
|
|||||||
encrypted_datetime = fernet.encrypt(datetime.now().isoformat().encode("utf-8")).decode("utf-8")
|
encrypted_datetime = fernet.encrypt(datetime.now().isoformat().encode("utf-8")).decode("utf-8")
|
||||||
await sio.emit("time_sync", encrypted_datetime, room=sid)
|
await sio.emit("time_sync", encrypted_datetime, room=sid)
|
||||||
# --- Time-Sync ---
|
# --- Time-Sync ---
|
||||||
sio.enter_room(sid, data.game_pin)
|
await sio.enter_room(sid, data.game_pin)
|
||||||
|
|
||||||
|
|
||||||
@sio.event
|
@sio.event
|
||||||
@@ -264,8 +264,8 @@ async def register_as_admin(sid: str, data: dict):
|
|||||||
session["game_pin"] = game_pin
|
session["game_pin"] = game_pin
|
||||||
session["admin"] = True
|
session["admin"] = True
|
||||||
session["remote"] = False
|
session["remote"] = False
|
||||||
sio.enter_room(sid, game_pin)
|
await sio.enter_room(sid, game_pin)
|
||||||
sio.enter_room(sid, f"admin:{data.game_pin}")
|
await sio.enter_room(sid, f"admin:{data.game_pin}")
|
||||||
else:
|
else:
|
||||||
await sio.emit("already_registered_as_admin", room=sid)
|
await sio.emit("already_registered_as_admin", room=sid)
|
||||||
|
|
||||||
@@ -525,7 +525,7 @@ async def kick_player(sid: str, data: dict):
|
|||||||
await redis.srem(
|
await redis.srem(
|
||||||
f"game_session:{session['game_pin']}:players", GamePlayer(username=data.username, sid=player_sid).json()
|
f"game_session:{session['game_pin']}:players", GamePlayer(username=data.username, sid=player_sid).json()
|
||||||
)
|
)
|
||||||
sio.leave_room(player_sid, session["game_pin"])
|
await sio.leave_room(player_sid, session["game_pin"])
|
||||||
await sio.emit("kick", room=player_sid)
|
await sio.emit("kick", room=player_sid)
|
||||||
|
|
||||||
|
|
||||||
@@ -552,8 +552,8 @@ async def register_as_remote(sid: str, data: dict):
|
|||||||
session["game_pin"] = data.game_pin
|
session["game_pin"] = data.game_pin
|
||||||
session["admin"] = True
|
session["admin"] = True
|
||||||
session["remote"] = True
|
session["remote"] = True
|
||||||
sio.enter_room(sid, data.game_pin)
|
await sio.enter_room(sid, data.game_pin)
|
||||||
sio.enter_room(sid, f"admin:{data.game_pin}")
|
await sio.enter_room(sid, f"admin:{data.game_pin}")
|
||||||
|
|
||||||
|
|
||||||
class _SetControlVisibilityInput(BaseModel):
|
class _SetControlVisibilityInput(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user