From 9624566689cb8ecd10fcaea2c50c3ac2abc22f11 Mon Sep 17 00:00:00 2001 From: Igor Kotrasinski Date: Fri, 2 Apr 2021 12:51:18 +0200 Subject: [PATCH] Fix query parameter order FIXME: We didn't have tests for this specific bit of code. Add them in the future. Signed-off-by: Igor Kotrasinski --- replayserver/bookkeeping/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replayserver/bookkeeping/database.py b/replayserver/bookkeeping/database.py index 4c92c28..857e682 100644 --- a/replayserver/bookkeeping/database.py +++ b/replayserver/bookkeeping/database.py @@ -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 = """