From e0eb6ea43ecf3c5b2953b059eb2a9e06a012b753 Mon Sep 17 00:00:00 2001 From: Christian Betz Date: Tue, 7 Mar 2023 05:18:37 +0100 Subject: [PATCH] iv_mitm: seen_type is stored as name, not value (#1306) as seen at db/model.py: https://github.com/Map-A-Droid/MAD/blob/e32da08a2c17929f0e2df6d825dc1caeadb6d97c/mapadroid/db/model.py#L128 --- mapadroid/db/helper/PokemonHelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapadroid/db/helper/PokemonHelper.py b/mapadroid/db/helper/PokemonHelper.py index 812b6dfa1..38c791837 100644 --- a/mapadroid/db/helper/PokemonHelper.py +++ b/mapadroid/db/helper/PokemonHelper.py @@ -81,7 +81,7 @@ async def get_to_be_encountered(session: AsyncSession, geofence_helper: Optional Pokemon.individual_defense == None, Pokemon.individual_stamina == None, Pokemon.encounter_id != 0, - Pokemon.seen_type != MonSeenTypes.nearby_cell.value, + Pokemon.seen_type != MonSeenTypes.nearby_cell.name, Pokemon.disappear_time.between(DatetimeWrapper.now() + datetime.timedelta( seconds=min_time_left_seconds),