From d647ebb3adc73e0fb2b81b8661bab94fbace8520 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 29 Jul 2023 18:36:01 +0530 Subject: Fix bugs related to filtering --- README.md | 2 +- serve.py | 2 +- views/index.tpl | 4 ++-- views/list_feeds.tpl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2fe658a..96c5c2f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This project is not in a finished state, but the core functionality is present. TagRSS is copyright (c) 2023-present Arjun Satarkar \. -TagRSS is licensed under the GNU Affero General Public License v3.0, which requires among other things that "[w]hen a modified version is used to provide a service over a network, the complete source code of the modified version must be made available."[^1] +TagRSS is licensed under the GNU Affero General Public License v3.0, which requires among other things that "\[w\]hen a modified version is used to provide a service over a network, the complete source code of the modified version must be made available."[^1] See `LICENSE.txt` in the root of this repository for the text of the license. diff --git a/serve.py b/serve.py index be650a7..e7558a9 100755 --- a/serve.py +++ b/serve.py @@ -83,7 +83,7 @@ def index(): if included_tags_str: included_tags = parse_space_separated_tags(included_tags_str) with core_lock: - total_pages: int = max(1, math.ceil(core.get_entry_count(included_feeds=included_feeds) / per_page)) + total_pages: int = max(1, math.ceil(core.get_entry_count(included_feeds=included_feeds, included_tags=included_tags) / per_page)) entries = core.get_entries(limit=per_page, offset=offset, included_feeds=included_feeds, included_tags=included_tags) return bottle.template( "index", diff --git a/views/index.tpl b/views/index.tpl index 52e997f..fd26295 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -62,7 +62,7 @@
% include("tag_hover_help.tpl")
@@ -138,7 +138,7 @@ % end % if included_tags: - + % end % include("footer.tpl") diff --git a/views/list_feeds.tpl b/views/list_feeds.tpl index 3c60f06..d780789 100644 --- a/views/list_feeds.tpl +++ b/views/list_feeds.tpl @@ -42,4 +42,4 @@ % include("footer.tpl") - \ No newline at end of file + -- cgit v1.2.3-57-g22cb