forked from MarseyWorld/MarseyWorld
fix repeated notifs
parent
3fdf4d4184
commit
dac39ced41
|
@ -197,7 +197,7 @@ def _hole_inactive_purge_task():
|
||||||
Post.deleted_utc == 0)]
|
Post.deleted_utc == 0)]
|
||||||
active_holes.extend(['changelog','countryclub','museumofrdrama','highrollerclub','test','truth','marsey','kappa']) # holes immune from death
|
active_holes.extend(['changelog','countryclub','museumofrdrama','highrollerclub','test','truth','marsey','kappa']) # holes immune from death
|
||||||
|
|
||||||
dead_holes = g.db.query(Hole).filter(Hole.name.notin_(active_holes)).all()
|
dead_holes = g.db.query(Hole).filter(Hole.dead_utc == None, Hole.name.notin_(active_holes)).all()
|
||||||
names = [x.name for x in dead_holes]
|
names = [x.name for x in dead_holes]
|
||||||
|
|
||||||
for name in names:
|
for name in names:
|
||||||
|
|
Loading…
Reference in New Issue