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,9 +36,9 @@ class LeaderboardMgrAI:
|
||||||
|
|
||||||
if originalRace != sortedRace:
|
if originalRace != sortedRace:
|
||||||
self.database[race][1] = sortedRace
|
self.database[race][1] = sortedRace
|
||||||
|
self.saveDatabase()
|
||||||
else:
|
else:
|
||||||
self.database[race] = (time.time(), [(name, timestamp)])
|
self.database[race] = (time.time(), [(name, timestamp)])
|
||||||
|
|
||||||
self.saveDatabase()
|
self.saveDatabase()
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_PROGRAMMER, types=[str, int, int, str, int])
|
@magicWord(category=CATEGORY_PROGRAMMER, types=[str, int, int, str, int])
|
||||||
|
|
Loading…
Reference in a new issue