1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-17 12:23:18 -05:00
parent 1f0eadc9f2
commit dfea4bbcb5

View file

@ -26,12 +26,12 @@ def updateBattleRecords(winner, loser):
if record is not None:
result = record.split('-')
result[0] = str(int(result[0]) + 1)
battles[winner.id] = result.join("-")
battles[winner.id] = "-".join(result)
record = battles.get(loser.id)
if record is not None:
result = record.split('-')
result[1] = str(int(result[1]) + 1)
battles[loser.id] = result.join("-")
battles[loser.id] = "-".join(result)
else:
battles = {winner.id:"1-0",loser.id:"0-1"}
config.saveContent('battle_records',battles)