remotes/1693045480750635534/spooky-22
Aevann1 2022-05-28 02:30:07 +02:00
parent 3f04c69cb8
commit 4e5f7935dd
2 changed files with 2 additions and 2 deletions

View File

@ -636,7 +636,7 @@ def api_comment(v):
cache.delete_memoized(comment_idlist)
v.comment_count = g.db.query(Comment).filter(Comment.author_id == v.id, Comment.parent_submission != None).filter_by(is_banned=False, deleted_utc=0).count()
v.comment_count = g.db.query(Comment).filter(Comment.author_id == v.id, Comment.parent_submission != None).count()
g.db.add(v)
c.voted = 1

View File

@ -1353,7 +1353,7 @@ def submit_post(v, sub=None):
post.comment_count += 1
post.replies = [c]
v.post_count = g.db.query(Submission).filter_by(author_id=v.id, is_banned=False, deleted_utc=0).count()
v.post_count = g.db.query(Submission).filter_by(author_id=v.id).count()
g.db.add(v)
if v.id == PIZZASHILL_ID: