Add readme, screenshots and small fixes

This commit is contained in:
2024-06-22 14:36:54 +04:00
parent c516ba920c
commit 7b2f270913
7 changed files with 45 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ async def edit_game(db: AsyncSession,
game_info: sch.GameCreate):
game = await db.get(mdl.Game, game_id)
for key, value in vars(game_info).items():
if (value and value is not None and getattr(game, key) != value):
if (getattr(game, key) != value):
setattr(game, key, value)
setattr(game, "update_date", strftime("%Y-%m-%d %H:%M:%S"))
await db.commit()