expired_orgies -> ended_orgies

master
Aevann 2023-10-14 01:33:07 +03:00
parent 1e101a7b10
commit a8fd8b8806
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ def get_running_orgy(v):
refresh = False
expired_orgies = g.db.query(Orgy).filter(Orgy.end_utc != None, Orgy.end_utc < time.time()).all()
for orgy in expired_orgies:
ended_orgies = g.db.query(Orgy).filter(Orgy.end_utc != None, Orgy.end_utc < time.time()).all()
for orgy in ended_orgies:
if orgy.started:
refresh = True
g.db.delete(orgy)