From 9e555cddb9b1f02ce5d65da8a42437064760ae58 Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Sat, 22 Jun 2024 11:00:58 +0200 Subject: Fixed stats --- telegram_bot/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'telegram_bot') diff --git a/telegram_bot/commands.py b/telegram_bot/commands.py index 108f550..5d4a849 100644 --- a/telegram_bot/commands.py +++ b/telegram_bot/commands.py @@ -137,6 +137,7 @@ class RecordStatsCommand(CommandHandler): async def handle(self, message: telebot.types.Message): if self.__fortnite_client.is_initialized(): + stats_datetime = datetime.datetime.now() friends = await self.__fortnite_client.get_friends() for friend in friends: - await self.__stats_repository.put_stats(friend) \ No newline at end of file + await self.__stats_repository.put_stats(friend, stats_datetime) \ No newline at end of file -- cgit v1.2.3