diff --git a/mapadroid/webhook/webhookworker.py b/mapadroid/webhook/webhookworker.py index 5a32d3409..cccbd4cc2 100644 --- a/mapadroid/webhook/webhookworker.py +++ b/mapadroid/webhook/webhookworker.py @@ -793,9 +793,9 @@ def __prepare_station_data(self, session: AsyncSession, _timestamp: int): } if station.battle_spawn is not None: - station_payload["battle_spawn"] = station.battle_spawn - station_payload["battle_start"] = station.battle_window_start.timestamp() - station_payload["battle_end"] = station.battle_window_end.timestamp() + station_payload["battle_spawn"] = int(station.battle_spawn.timestamp()) + station_payload["battle_start"] = int(station.battle_window_start.timestamp()) + station_payload["battle_end"] = int(station.battle_window_end.timestamp()) station_payload["battle_level"] = station.battle_level if station.battle_pokemon_id is not None: