Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Fix query parameter order
Browse files Browse the repository at this point in the history
FIXME: We didn't have tests for this specific bit of code. Add them in
the future.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>
  • Loading branch information
Igor Kotrasinski committed Apr 2, 2021
1 parent d592ed1 commit 9624566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replayserver/bookkeeping/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def update_game_stats(self, game_id, replay_ticks, replay_available):
WHERE `game_stats`.`id` = %s
"""
logger.debug(f"Performing query: {query}")
await self._db.execute(query, ((replay_ticks, game_id, replay_available),))
await self._db.execute(query, ((replay_ticks, replay_available, game_id),))

async def get_mod_versions(self, mod):
query = """
Expand Down

0 comments on commit 9624566

Please sign in to comment.