mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 23:01:36 +01:00
fix timedelta calculation
This commit is contained in:
@@ -60,7 +60,7 @@ def updatePlayerRanks(force=False):
|
||||
global player_ranks
|
||||
global playerRankList
|
||||
|
||||
if force or last_rank_update - datetime.now() > timedelta(seconds=240):
|
||||
if force or datetime.now() - last_rank_update > timedelta(seconds=240):
|
||||
last_rank_update = datetime.now()
|
||||
s = sorted(known_players.values(), key=lambda x: TS.getEnviroment().expose(x.rating),reverse=True)
|
||||
now = datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user