mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Only save database if necessary
This commit is contained in:
parent
1752544d9e
commit
0aab15cb8c
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ class LeaderboardMgrAI:
|
|||
|
||||
if originalRace != sortedRace:
|
||||
self.database[race][1] = sortedRace
|
||||
self.saveDatabase()
|
||||
else:
|
||||
self.database[race] = (time.time(), [(name, timestamp)])
|
||||
|
||||
self.saveDatabase()
|
||||
self.saveDatabase()
|
||||
|
||||
@magicWord(category=CATEGORY_PROGRAMMER, types=[str, int, int, str, int])
|
||||
def leaderboard(command, raceId=0, type=0, name='', time=0):
|
||||
|
|
Loading…
Reference in a new issue