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)