Only save database if necessary

This commit is contained in:
John 2015-06-06 20:59:31 +03:00 committed by Loudrob
parent 1752544d9e
commit 0aab15cb8c

View file

@ -36,9 +36,9 @@ class LeaderboardMgrAI:
if originalRace != sortedRace:
self.database[race][1] = sortedRace
self.saveDatabase()
else:
self.database[race] = (time.time(), [(name, timestamp)])
self.saveDatabase()
@magicWord(category=CATEGORY_PROGRAMMER, types=[str, int, int, str, int])