mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
more efficient query than the one generated by sqlalchemy
This commit is contained in:
parent
1932aa324b
commit
c652be4024
1 changed files with 1 additions and 2 deletions
|
@ -210,7 +210,6 @@ def register(app):
|
|||
{'community_id': community.id}).scalar()
|
||||
community.post_reply_count = db.session.execute(text('SELECT COUNT(id) as c FROM post_reply WHERE deleted is false and community_id = :community_id'),
|
||||
{'community_id': community.id}).scalar()
|
||||
|
||||
db.session.commit()
|
||||
|
||||
# Delete voting data after 6 months
|
||||
|
|
Loading…
Add table
Reference in a new issue