From 2ca9675f31e989182f0db47b776fb82a19ebbb6b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Nov 2016 15:51:02 +0100 Subject: [PATCH] should work!!! --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f92933fa..1dd86ba3 100644 --- a/main.py +++ b/main.py @@ -73,7 +73,7 @@ async def overwatch_status_change(timeout): medal=overwatch.rank_to_medal( int(r["data"]["competitive"]["rank"])))) # Update database - db[player]["overwatch"]["rank"] = r["data"]["competitive"]["rank"] + db[player]["overwatch"]["rank"] = int(r["data"]["competitive"]["rank"]) f = open("db.json", "w") json.dump(db, f) f.close()