From a3e546f98fc82d14717161a5e1de610120370a88 Mon Sep 17 00:00:00 2001 From: bashrc Date: Fri, 3 Jul 2026 10:23:27 +0100 Subject: [PATCH] Rename variable --- src/collections.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/collections.py b/src/collections.py index f91387d34..01c46ba23 100644 --- a/src/collections.py +++ b/src/collections.py @@ -22,10 +22,10 @@ def _get_no_of_featured_collections(base_dir: str, """ ending: str = '/featured_collections' accounts_dir: str = acct_dir(base_dir, nickname, domain) - filename: str = accounts_dir + ending + '.json' - if not is_a_file(filename): + collection_filename: str = accounts_dir + ending + '.json' + if not is_a_file(collection_filename): return 0 - lines: list[dict] = load_json(filename) + lines: list[dict] = load_json(collection_filename) if lines is None: return 0 if not isinstance(lines, list): @@ -117,11 +117,11 @@ def get_featured_collections_feed(base_dir: str, domain: str, port: int, handle_domain = domain handle_domain = remove_domain_port(handle_domain) accounts_dir = acct_dir(base_dir, nickname, handle_domain) - filename = accounts_dir + ending + '.json' - if not is_a_file(filename): + collection_filename = accounts_dir + ending + '.json' + if not is_a_file(collection_filename): return collection curr_page: int = 1 - lines: list[dict] = load_json(filename) + lines: list[dict] = load_json(collection_filename) if lines is None: return collection if not isinstance(lines, list):