From b03528b54eaf0ee4935273ccd3dd03449995d63f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Jul 2026 22:34:38 +0500 Subject: [PATCH] fix: use correct pagination.pages attribute instead of total_pages to resolve 500 error --- src/vk_parser_app/templates/editor_content.html | 8 ++++---- src/vk_parser_app/templates/logs.html | 8 ++++---- src/vk_parser_app/templates/raw_posts_content.html | 2 +- src/vk_parser_app/templates/sources_content.html | 8 ++++---- src/vk_parser_app/templates/users.html | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/vk_parser_app/templates/editor_content.html b/src/vk_parser_app/templates/editor_content.html index ca2d37e..4981ec7 100644 --- a/src/vk_parser_app/templates/editor_content.html +++ b/src/vk_parser_app/templates/editor_content.html @@ -103,7 +103,7 @@ - {% if pagination.total_pages > 1 %} + {% if pagination.pages > 1 %}
@@ -118,10 +118,10 @@ - + - - + +
{% endif %} diff --git a/src/vk_parser_app/templates/logs.html b/src/vk_parser_app/templates/logs.html index f65326c..50d0bf8 100644 --- a/src/vk_parser_app/templates/logs.html +++ b/src/vk_parser_app/templates/logs.html @@ -127,14 +127,14 @@ - {% if pagination.total_pages > 1 %} + {% if pagination.pages > 1 %}
« - - - » + + + »
{% endif %} diff --git a/src/vk_parser_app/templates/raw_posts_content.html b/src/vk_parser_app/templates/raw_posts_content.html index b4a03cb..671ce99 100644 --- a/src/vk_parser_app/templates/raw_posts_content.html +++ b/src/vk_parser_app/templates/raw_posts_content.html @@ -136,7 +136,7 @@ {% endif %} - + {% if pagination.has_next %} diff --git a/src/vk_parser_app/templates/sources_content.html b/src/vk_parser_app/templates/sources_content.html index f1f7bca..be867c0 100644 --- a/src/vk_parser_app/templates/sources_content.html +++ b/src/vk_parser_app/templates/sources_content.html @@ -44,14 +44,14 @@ -{% if pagination.total_pages > 1 %} +{% if pagination.pages > 1 %}
- - - + + +
{% endif %} diff --git a/src/vk_parser_app/templates/users.html b/src/vk_parser_app/templates/users.html index 72e4b88..dfe6d32 100644 --- a/src/vk_parser_app/templates/users.html +++ b/src/vk_parser_app/templates/users.html @@ -47,14 +47,14 @@ - {% if pagination.total_pages > 1 %} + {% if pagination.pages > 1 %}
« - - - » + + + »
{% endif %}