mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
e1ac8f1ea1
commit
622d6015d3
|
@ -20820,7 +20820,8 @@ def load_tokens(base_dir: str, tokens_dict: {}, tokens_lookup: {}) -> None:
|
||||||
nickname = handle.split('@')[0]
|
nickname = handle.split('@')[0]
|
||||||
token = None
|
token = None
|
||||||
try:
|
try:
|
||||||
with open(token_filename, 'r') as fp_tok:
|
with open(token_filename, 'r',
|
||||||
|
encoding='utf-8') as fp_tok:
|
||||||
token = fp_tok.read()
|
token = fp_tok.read()
|
||||||
except BaseException as ex:
|
except BaseException as ex:
|
||||||
print('WARN: Unable to read token for ' +
|
print('WARN: Unable to read token for ' +
|
||||||
|
@ -20863,7 +20864,7 @@ def run_daemon(preferred_podcast_formats: [],
|
||||||
max_news_posts: int,
|
max_news_posts: int,
|
||||||
max_mirrored_articles: int,
|
max_mirrored_articles: int,
|
||||||
max_newswire_feed_size_kb: int,
|
max_newswire_feed_size_kb: int,
|
||||||
max_newswire_postsPerSource: int,
|
max_newswire_posts_per_source: int,
|
||||||
show_published_date_only: bool,
|
show_published_date_only: bool,
|
||||||
voting_time_mins: int,
|
voting_time_mins: int,
|
||||||
positive_voting: bool,
|
positive_voting: bool,
|
||||||
|
@ -21105,7 +21106,7 @@ def run_daemon(preferred_podcast_formats: [],
|
||||||
# this is the maximum number of posts to show for each.
|
# this is the maximum number of posts to show for each.
|
||||||
# This avoids one or two sources from dominating the news,
|
# This avoids one or two sources from dominating the news,
|
||||||
# and also prevents big feeds from slowing down page load times
|
# and also prevents big feeds from slowing down page load times
|
||||||
httpd.max_newswire_postsPerSource = max_newswire_postsPerSource
|
httpd.max_newswire_posts_per_source = max_newswire_posts_per_source
|
||||||
|
|
||||||
# Show only the date at the bottom of posts, and not the time
|
# Show only the date at the bottom of posts, and not the time
|
||||||
httpd.show_published_date_only = show_published_date_only
|
httpd.show_published_date_only = show_published_date_only
|
||||||
|
|
|
@ -814,7 +814,7 @@ def run_newswire_daemon(base_dir: str, httpd,
|
||||||
print('Updating newswire feeds')
|
print('Updating newswire feeds')
|
||||||
new_newswire = \
|
new_newswire = \
|
||||||
get_dict_from_newswire(httpd.session, base_dir, domain,
|
get_dict_from_newswire(httpd.session, base_dir, domain,
|
||||||
httpd.max_newswire_postsPerSource,
|
httpd.max_newswire_posts_per_source,
|
||||||
httpd.max_newswire_feed_size_kb,
|
httpd.max_newswire_feed_size_kb,
|
||||||
httpd.maxTags,
|
httpd.maxTags,
|
||||||
httpd.max_feed_item_size_kb,
|
httpd.max_feed_item_size_kb,
|
||||||
|
|
Loading…
Reference in New Issue