Remove default function argument

main
Bob Mottram 2024-05-01 13:03:34 +01:00
parent 86b8e379f1
commit a599d44d63
4 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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