From a5fd96faa66ecb7bf2fdd59e40c4c2401d9b92a9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 28 Aug 2018 17:38:17 +0200 Subject: [PATCH] tony bugfix --- db.py | 2 +- telegrambot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 035d0349..46cf3aab 100644 --- a/db.py +++ b/db.py @@ -309,7 +309,7 @@ class Dota(Base): self.rank_tier = data["rank_tier"] self.wins = wl["win"] self.losses = wl["lose"] - self.most_played_hero = heroes[0] + self.most_played_hero = heroes[0]["hero_id"] class LeagueOfLegendsRanks(enum.Enum): diff --git a/telegrambot.py b/telegrambot.py index f702d74a..978314fb 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -548,4 +548,4 @@ def process(arg_discord_connection): if __name__ == "__main__": - process(None) \ No newline at end of file + process(None)