diff --git a/files/routes/comments.py b/files/routes/comments.py index c36141a20..0bc70eb2d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -307,7 +307,7 @@ def api_comment(v): g.db.add(c_based) g.db.flush() - if c.level == 0: basedguy = get_account(c.parent_submission.author_id) + if 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)