whatever
This commit is contained in:
parent
01a447f718
commit
198531c29d
5 changed files with 27 additions and 16 deletions
|
@ -929,7 +929,7 @@ def submit_post(v):
|
|||
g.db.add(n)
|
||||
g.db.flush()
|
||||
|
||||
v.post_count = v.submissions.filter_by(is_banned=False, deleted_utc=0).count()
|
||||
v.post_count = g.db.query(Submission.id).options(lazyload('*')).filter_by(is_banned=False, deleted_utc=0).count()
|
||||
g.db.add(v)
|
||||
|
||||
cache.delete_memoized(frontlist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue