mirror of https://gitlab.com/bashrc2/epicyon
Remove default arguments
parent
0fefc5da23
commit
480be1c49c
|
@ -115,8 +115,7 @@ def load_city_hashtags(base_dir: str, translate: {}) -> None:
|
|||
|
||||
|
||||
def get_hashtag_categories(base_dir: str,
|
||||
recent: bool = False,
|
||||
category: str = None) -> None:
|
||||
recent: bool, category: str) -> None:
|
||||
"""Returns a dictionary containing hashtag categories
|
||||
"""
|
||||
hashtag_categories = {}
|
||||
|
@ -183,7 +182,7 @@ def update_hashtag_categories(base_dir: str) -> None:
|
|||
"""Regenerates the list of hashtag categories
|
||||
"""
|
||||
category_list_filename = base_dir + '/accounts/categoryList.txt'
|
||||
hashtag_categories = get_hashtag_categories(base_dir)
|
||||
hashtag_categories = get_hashtag_categories(base_dir, False, None)
|
||||
if not hashtag_categories:
|
||||
if os.path.isfile(category_list_filename):
|
||||
try:
|
||||
|
|
3
inbox.py
3
inbox.py
|
@ -441,7 +441,8 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str,
|
|||
# automatically assign a category to the tag if possible
|
||||
category_filename = tags_dir + '/' + tag_name + '.category'
|
||||
if not os.path.isfile(category_filename):
|
||||
hashtag_categories = get_hashtag_categories(base_dir)
|
||||
hashtag_categories = \
|
||||
get_hashtag_categories(base_dir, False, None)
|
||||
category_str = \
|
||||
guess_hashtag_category(tag_name, hashtag_categories, 6)
|
||||
if category_str:
|
||||
|
|
|
@ -28,7 +28,7 @@ def get_hashtag_categories_feed(base_dir: str,
|
|||
"""Returns an rss feed for hashtag categories
|
||||
"""
|
||||
if not hashtag_categories:
|
||||
hashtag_categories = get_hashtag_categories(base_dir)
|
||||
hashtag_categories = get_hashtag_categories(base_dir, False, None)
|
||||
if not hashtag_categories:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue