From ea19c27960520565c81131f85bd677dd00991499 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 13 Oct 2023 00:20:53 +0300 Subject: [PATCH] fix stopping orgy --- files/routes/admin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 788372d3a..5420ed64e 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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!"}