From 92001a45bed47c622f4fb53d34ba936b5268f875 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 18 Aug 2023 08:09:43 +0200 Subject: [PATCH] Fixed xp calculation #1.1.0.rc5 --- kdb-bot/src/bot_core/service/data_integrity_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/bot_core/service/data_integrity_service.py b/kdb-bot/src/bot_core/service/data_integrity_service.py index 973b1c0d..946d6d29 100644 --- a/kdb-bot/src/bot_core/service/data_integrity_service.py +++ b/kdb-bot/src/bot_core/service/data_integrity_service.py @@ -291,7 +291,7 @@ class DataIntegrityService: self._user_joins_vc.update_user_joined_voice_channel(join) if self._is_for_shutdown: - user.xp = round(join.time * settings.xp_per_ontime_hour) + user.xp += round(join.time * settings.xp_per_ontime_hour) self._users.update_user(user) self._db_context.save_changes() @@ -356,7 +356,7 @@ class DataIntegrityService: self._user_joined_gs.update_user_joined_game_server(join) if self._is_for_shutdown: - user.xp = round(join.time * settings.xp_per_ontime_hour) + user.xp += round(join.time * settings.xp_per_ontime_hour) self._users.update_user(user) self._db_context.save_changes()