From 57d7342802797c33d49571c11970fdf786f4dd77 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 21 Aug 2023 18:51:37 +0300 Subject: [PATCH] fix polls not appearing when making comment --- files/routes/comments.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 946aa39178..012a9dc91b 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -412,6 +412,8 @@ def comment(v): ).one_or_none() if n: g.db.delete(n) + g.db.flush() + if c.parent_post: for sort in COMMENT_SORTS: cache.delete(f'post_{c.parent_post}_{sort}')