diff --git a/pokemongo_bot/event_handlers/chat_handler.py b/pokemongo_bot/event_handlers/chat_handler.py index 13bd2c77ea..196f8449c8 100644 --- a/pokemongo_bot/event_handlers/chat_handler.py +++ b/pokemongo_bot/event_handlers/chat_handler.py @@ -18,7 +18,7 @@ def get_evolved(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" with self.bot.database as conn: @@ -45,7 +45,7 @@ def get_hatched(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" with self.bot.database as conn: @@ -60,7 +60,7 @@ def get_caught(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" with self.bot.database as conn: @@ -87,7 +87,7 @@ def get_released(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" with self.bot.database as conn: @@ -102,7 +102,7 @@ def get_vanished(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" with self.bot.database as conn: @@ -185,7 +185,7 @@ def get_top(self, num, order): else: num = int(num) - if order not in ["cp", "iv"]: + if order not in ["cp", "iv", "dated"]: order = "iv" pkmns = sorted(inventory.pokemons().all(), key=lambda p: getattr(p, order), reverse=True)[:num] res = []