mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-23 19:19:53 +02:00
Fix typo: store_player_achievements
This commit is contained in:
1 parent
098eecc629
commit
ecd4b93e0c
1 file changed
+4
-2
+4
-2
@@ -1172,6 +1172,8 @@ class WG:
|
|||||||
await self.store_tank_stats(key, stats_data, update_time)
|
await self.store_tank_stats(key, stats_data, update_time)
|
||||||
elif stats_type == 'player_stats':
|
elif stats_type == 'player_stats':
|
||||||
await self.store_player_stats(key, stats_data, update_time)
|
await self.store_player_stats(key, stats_data, update_time)
|
||||||
|
elif stats_type == 'player_achievements':
|
||||||
|
await self.store_player_achievements(key, stats_data, update_time)
|
||||||
else:
|
else:
|
||||||
error('Function to saves stats type \'' + stats_type + '\' is not implemented yet')
|
error('Function to saves stats type \'' + stats_type + '\' is not implemented yet')
|
||||||
|
|
||||||
@@ -1236,7 +1238,7 @@ class WG:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
async def store_player_achivements(self, key: list , stats_data: list, update_time: int):
|
async def store_player_achievements(self, key: list , stats_data: list, update_time: int):
|
||||||
"""Save player stats into cache"""
|
"""Save player stats into cache"""
|
||||||
try:
|
try:
|
||||||
account_id = key[0]
|
account_id = key[0]
|
||||||
@@ -1245,7 +1247,7 @@ class WG:
|
|||||||
else:
|
else:
|
||||||
await self.cache.execute(WG.SQL_PLAYER_ACHIEVEMENTS_UPDATE, (account_id, update_time, None))
|
await self.cache.execute(WG.SQL_PLAYER_ACHIEVEMENTS_UPDATE, (account_id, update_time, None))
|
||||||
await self.cache.commit()
|
await self.cache.commit()
|
||||||
debug('Cached player achivements saved for account_id: ' + str(account_id) )
|
debug('Cached player achievements saved for account_id: ' + str(account_id) )
|
||||||
return True
|
return True
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
error(exception=err)
|
error(exception=err)
|
||||||
|
|||||||
Reference in new issue
Block a user