From 96668282dfb1a35172c37cdeb192fdc052a78e01 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 20 Aug 2023 06:04:25 +0300 Subject: [PATCH] use flush intead of commit --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 94bde74d8..ff733db8b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -678,7 +678,7 @@ def submit_post(v, sub=None): if not p.private: execute_snappy(p, v) - g.db.commit() #Necessary, do NOT remove + g.db.flush() #Necessary, do NOT remove if not p.thumburl and p.url and p.domain != SITE: gevent.spawn(thumbnail_thread, p.url, p.id)