fix stopping orgy

master
Aevann 2023-10-13 00:20:53 +03:00
parent 70b6a24014
commit ea19c27960
1 changed files with 3 additions and 4 deletions

View File

@ -2026,9 +2026,8 @@ def stop_orgy(v):
)
g.db.add(ma)
orgy.end_utc = int(time.time())
g.db.add(orgy)
get_orgy(v) #don't remove this, it's necessary (trust)
g.db.delete(orgy)
g.db.commit()
requests.post('http://localhost:5001/refresh_chat', headers={"Host": SITE})
return {"message": "Orgy stopped successfully!"}