mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-24 10:52:40 +01:00
Fix progress bar total
This commit is contained in:
@ -60,7 +60,10 @@ def todo_topics_page():
|
|||||||
qb.setSortIfNone("date")
|
qb.setSortIfNone("date")
|
||||||
query = qb.buildTopicQuery()
|
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()
|
topic_count = query.count()
|
||||||
|
|
||||||
page = int(request.args.get("page") or 1)
|
page = int(request.args.get("page") or 1)
|
||||||
|
Reference in New Issue
Block a user