From 6ceb0879126cb392d20c32009fe931648a4abf1f Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 26 Jul 2023 01:08:29 +0300 Subject: [PATCH] restore necessary flush --- files/routes/posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 7da11493d..f2d4a4ffb 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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