1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fixed db_saves

This commit is contained in:
Steffo 2017-02-09 15:37:01 +01:00
parent 020afb305e
commit 11e45e0c45

View file

@ -67,6 +67,7 @@ async def overwatch_status_change(timeout):
loop.create_task(send_event(eventmsg=s.overwatch_level_up, player=player, level=level)) loop.create_task(send_event(eventmsg=s.overwatch_level_up, player=player, level=level))
# Update database # Update database
db[player]["overwatch"]["level"] = level db[player]["overwatch"]["level"] = level
save_db()
# Check for rank changes # Check for rank changes
rank = r["data"]["competitive"]["rank"] rank = r["data"]["competitive"]["rank"]
if rank is not None: if rank is not None: