restore necessary flush

pull/173/head
Aevann 2023-07-26 01:08:29 +03:00
parent 260fc17735
commit 6ceb087912
1 changed files with 2 additions and 0 deletions

View File

@ -744,6 +744,8 @@ def submit_post(v:User, sub=None):
if not p.private:
execute_snappy(p, v)
g.db.flush() #Necessary, do NOT remove
if v.client: return p.json
else:
p.voted = 1