From 67f71997b66536551af0b6486c514fa6a67b12d1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Dec 2022 08:13:07 +0200 Subject: [PATCH] move g.db.commit() --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 51cd9a7df..00f0bb760 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -171,12 +171,12 @@ def move_acc(v:User, new_id, old_id): g.db.delete(olduser) + g.db.commit() + online = cache.get(CHAT_ONLINE_CACHE_KEY) cache.clear() cache.set(CHAT_ONLINE_CACHE_KEY, online) - g.db.commit() - return redirect(f"/id/{old_id}")