Skip to content

Commit 0a2ed10

Browse files
author
evenly-epic-mule
committed
Map: Reset Spawnpoints after migration
Marking not jet updated spawns as mysteries again
1 parent 22f6087 commit 0a2ed10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

monocle/web_utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,12 @@ def get_spawnpoint_markers():
138138
spawns = session.query(Spawnpoint)
139139
return [{
140140
'spawn_id': spawn.spawn_id,
141-
'despawn_time': spawn.despawn_time,
141+
'despawn_time': spawn.despawn_time
142+
if spawn.updated > conf.LAST_MIGRATION else None,
142143
'lat': spawn.lat,
143144
'lon': spawn.lon,
144145
'duration': spawn.duration
146+
if spawn.updated > conf.LAST_MIGRATION else None
145147
} for spawn in spawns]
146148

147149
if conf.BOUNDARIES:

0 commit comments

Comments
 (0)