restore page count to topics view
This commit is contained in:
@@ -16,7 +16,7 @@ def topic(slug):
|
|||||||
if not topic:
|
if not topic:
|
||||||
abort(404)
|
abort(404)
|
||||||
sort_by = request.args.get('sort_by', default=session.get('sort_by', default='activity'))
|
sort_by = request.args.get('sort_by', default=session.get('sort_by', default='activity'))
|
||||||
PER_PAGE = 3
|
PER_PAGE = 10
|
||||||
threads_count = Threads.count({'topic_id': topic.id})
|
threads_count = Threads.count({'topic_id': topic.id})
|
||||||
page_count = max(1, math.ceil(threads_count / PER_PAGE))
|
page_count = max(1, math.ceil(threads_count / PER_PAGE))
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user