mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Fix progress bar total
This commit is contained in:
parent
885209a614
commit
896a65fd99
@ -60,7 +60,10 @@ def todo_topics_page():
|
||||
qb.setSortIfNone("date")
|
||||
query = qb.buildTopicQuery()
|
||||
|
||||
total = ForumTopic.query.count()
|
||||
tmp_q = ForumTopic.query
|
||||
if not qb.show_discarded:
|
||||
tmp_q = tmp_q.filter_by(discarded=qb.show_discarded)
|
||||
total = tmp_q.count()
|
||||
topic_count = query.count()
|
||||
|
||||
page = int(request.args.get("page") or 1)
|
||||
|
Loading…
Reference in New Issue
Block a user