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,
|
def get_hashtag_categories(base_dir: str,
|
||||||
recent: bool = False,
|
recent: bool, category: str) -> None:
|
||||||
category: str = None) -> None:
|
|
||||||
"""Returns a dictionary containing hashtag categories
|
"""Returns a dictionary containing hashtag categories
|
||||||
"""
|
"""
|
||||||
hashtag_categories = {}
|
hashtag_categories = {}
|
||||||
|
@ -183,7 +182,7 @@ def update_hashtag_categories(base_dir: str) -> None:
|
||||||
"""Regenerates the list of hashtag categories
|
"""Regenerates the list of hashtag categories
|
||||||
"""
|
"""
|
||||||
category_list_filename = base_dir + '/accounts/categoryList.txt'
|
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 not hashtag_categories:
|
||||||
if os.path.isfile(category_list_filename):
|
if os.path.isfile(category_list_filename):
|
||||||
try:
|
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
|
# automatically assign a category to the tag if possible
|
||||||
category_filename = tags_dir + '/' + tag_name + '.category'
|
category_filename = tags_dir + '/' + tag_name + '.category'
|
||||||
if not os.path.isfile(category_filename):
|
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 = \
|
category_str = \
|
||||||
guess_hashtag_category(tag_name, hashtag_categories, 6)
|
guess_hashtag_category(tag_name, hashtag_categories, 6)
|
||||||
if category_str:
|
if category_str:
|
||||||
|
|
|
@ -28,7 +28,7 @@ def get_hashtag_categories_feed(base_dir: str,
|
||||||
"""Returns an rss feed for hashtag categories
|
"""Returns an rss feed for hashtag categories
|
||||||
"""
|
"""
|
||||||
if not 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:
|
if not hashtag_categories:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue