forked from MarseyWorld/MarseyWorld
move g.db.commit()
parent
c798eb5090
commit
67f71997b6
|
@ -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}")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue