From a599d44d63d8c4825e63fff351a44db49abd6071 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 1 May 2024 13:03:34 +0100 Subject: [PATCH] Remove default function argument --- categories.py | 2 +- daemon_post_hashtags.py | 2 +- daemon_post_profile.py | 2 +- inbox.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/categories.py b/categories.py index 424af5f11..8e827208c 100644 --- a/categories.py +++ b/categories.py @@ -229,7 +229,7 @@ def _valid_hashtag_category(category: str) -> bool: def set_hashtag_category(base_dir: str, hashtag: str, category: str, - update: bool, force: bool = False) -> bool: + update: bool, force: bool) -> bool: """Sets the category for the hashtag """ if not _valid_hashtag_category(category): diff --git a/daemon_post_hashtags.py b/daemon_post_hashtags.py index b099a3e0d..3c9bf50b5 100644 --- a/daemon_post_hashtags.py +++ b/daemon_post_hashtags.py @@ -125,7 +125,7 @@ def set_hashtag_category2(self, calling_domain: str, cookie: str, not is_filtered(base_dir, nickname, domain, category_str, system_language): set_hashtag_category(base_dir, hashtag, - category_str, False) + category_str, False, False) else: category_filename = base_dir + '/tags/' + hashtag + '.category' if os.path.isfile(category_filename): diff --git a/daemon_post_profile.py b/daemon_post_profile.py index 1bb49fade..acfb87b27 100644 --- a/daemon_post_profile.py +++ b/daemon_post_profile.py @@ -2379,7 +2379,7 @@ def _profile_post_skill_level(actor_json: {}, skills_str = translate['Skills'] skills_str = skills_str.lower() set_hashtag_category(base_dir, skill_name, - skills_str, False) + skills_str, False, False) skill_ctr += 1 if no_of_actor_skills(actor_json) != actor_skills_ctr: actor_changed = True diff --git a/inbox.py b/inbox.py index ca9758e42..4b8e1a9b6 100644 --- a/inbox.py +++ b/inbox.py @@ -453,7 +453,7 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str, guess_hashtag_category(tag_name, hashtag_categories, 6) if category_str: set_hashtag_category(base_dir, tag_name, - category_str, False) + category_str, False, False) # if some hashtags were found then recalculate the swarm # ready for later display