forked from rDrama/rDrama
dfs
parent
3f04c69cb8
commit
4e5f7935dd
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue