From d6c250c9107bdad299ac9d82261038e4c70bd3da Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 23 Jul 2023 17:41:48 +0300 Subject: [PATCH] remove unnecessary flush --- files/routes/comments.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 308d15e55..1f152db02 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -387,8 +387,6 @@ def comment(v:User): ).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}')