forked from rDrama/rDrama
1
0
Fork 0

filter chat_id

master
Aevann 2024-05-03 10:44:24 +03:00
parent 11fba88fc2
commit d73d6f6bd4
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ def schedule_orgy(v, chat_id):
if start_utc:
start_utc = int(start_utc)
else:
last_orgy = g.db.query(Orgy).order_by(Orgy.start_utc.desc()).first()
last_orgy = g.db.query(Orgy).filter_by(chat_id=chat.id).order_by(Orgy.start_utc.desc()).first()
if last_orgy and last_orgy.end_utc:
start_utc = last_orgy.end_utc
else: