Skip to content

Commit

Permalink
Null everything if no battle
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko committed Sep 13, 2024
1 parent d44897b commit bfc066e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions mapadroid/db/DbPogoProtoSubmitRaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,25 @@ async def stations(self, session: AsyncSession, received_timestamp: int,
station_obj.battle_pokemon_bread_mode = pokemon_data.pokemon_display.bread_mode_enum
station_obj.battle_pokemon_move_1 = pokemon_data.move1
station_obj.battle_pokemon_move_2 = pokemon_data.move2
else:
station_obj.battle_spawn = None
station_obj.battle_window_start = None
station_obj.battle_window_end = None
station_obj.battle_level = None
station_obj.reward_pokemon_id = None
station_obj.reward_pokemon_form = None
station_obj.reward_pokemon_gender = None
station_obj.reward_pokemon_costume = None
station_obj.reward_pokemon_alignment = None
station_obj.reward_pokemon_bread_mode = None
station_obj.battle_pokemon_id = None
station_obj.battle_pokemon_form = None
station_obj.battle_pokemon_gender = None
station_obj.battle_pokemon_costume = None
station_obj.battle_pokemon_alignment = None
station_obj.battle_pokemon_bread_mode = None
station_obj.battle_pokemon_move_1 = None
station_obj.battle_pokemon_move_2 = None

station_obj.start_time = start_time
station_obj.end_time = end_time
Expand Down

0 comments on commit bfc066e

Please sign in to comment.