From 65ad672748e256c6cadb2841a42c12698f619696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 20 Apr 2026 13:22:41 +0300 Subject: [PATCH] restore page count to topics view --- app/routes/topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/topics.py b/app/routes/topics.py index e7c1488..b9207b3 100644 --- a/app/routes/topics.py +++ b/app/routes/topics.py @@ -16,7 +16,7 @@ def topic(slug): if not topic: abort(404) 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}) page_count = max(1, math.ceil(threads_count / PER_PAGE)) try: