From 22b56ad9adfc7be18f98eca024a844c6b65e94db Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 3 Sep 2021 23:45:30 +0200 Subject: [PATCH] fd --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 398b100baf..c36141a20c 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -307,8 +307,8 @@ def api_comment(v): g.db.add(c_based) g.db.flush() - if c.level == 0: basedguy = get_account(c.parent_comment.author_id) - else: basedguy = get_account(c.parent_submission.author_id) + if c.level == 0: basedguy = get_account(c.parent_submission.author_id) + else: basedguy = get_account(c.parent_comment.author_id) basedguy.basedcount += 1 g.db.add(basedguy) g.db.flush()