move g.db.commit()

master
Aevann 2022-12-25 08:13:07 +02:00
parent c798eb5090
commit 67f71997b6
1 changed files with 2 additions and 2 deletions

View File

@ -171,12 +171,12 @@ def move_acc(v:User, new_id, old_id):
g.db.delete(olduser) g.db.delete(olduser)
g.db.commit()
online = cache.get(CHAT_ONLINE_CACHE_KEY) online = cache.get(CHAT_ONLINE_CACHE_KEY)
cache.clear() cache.clear()
cache.set(CHAT_ONLINE_CACHE_KEY, online) cache.set(CHAT_ONLINE_CACHE_KEY, online)
g.db.commit()
return redirect(f"/id/{old_id}") return redirect(f"/id/{old_id}")