From eae5a7b2af48b654f88bfca3a79e2c445c5c3379 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 21 Mar 2022 23:53:42 +0200 Subject: [PATCH] fsd --- files/routes/comments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index a8c870426..78155a6ca 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -286,6 +286,7 @@ def api_comment(v): marsey = Marsey(name=name, author_id=user.id, tags=tags, count=0) g.db.add(marsey) + g.db.flush() all_by_author = g.db.query(Marsey.author_id).filter_by(author_id=user.id).count()