From 3324cf3ac32e9dce09d79b74ca0f2fc98aa43380 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 5 Mar 2023 22:36:46 +0100 Subject: [PATCH] Fixed time calculation for user joined gs/vs --- .../bot_graphql/mutations/user_joined_game_server_mutation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kdb-bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py b/kdb-bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py index 0f68ed53..ae0a5c04 100644 --- a/kdb-bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py +++ b/kdb-bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py @@ -123,6 +123,7 @@ class UserJoinedGameServerMutation(QueryABC): user.xp += round(ontime * settings.xp_per_ontime_hour) self._user_joined_game_servers.update_user_joined_game_server(active) + self._users.update_user(user) self._db.save_changes() self._logger.debug( __name__,