Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk-rnjn committed Jul 25, 2023
1 parent 6efb3d3 commit 1684aaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Context.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ async def retry(
async def database_game_update(
self, game_name: str, *, win: bool = False, loss: bool = False, set: dict = {}, **kw: Any
) -> bool:
kwargs: dict[str, Any] = {f"game_{game_name}_{k}": v for k, v in set.items()}
set_kwargs: dict[str, Any] = {f"game_{game_name}_{k}": v for k, v in set.items()}
kwargs = {"$set": set_kwargs}
if not win and not loss:
update_result: UpdateResult = await self.bot.game_collections.update_one(
{
Expand Down

0 comments on commit 1684aaf

Please sign in to comment.