Snake case

main
Bob Mottram 2022-06-10 14:47:10 +01:00
parent e1ac8f1ea1
commit 622d6015d3
2 changed files with 5 additions and 4 deletions

View File

@ -20820,7 +20820,8 @@ def load_tokens(base_dir: str, tokens_dict: {}, tokens_lookup: {}) -> None:
nickname = handle.split('@')[0]
token = None
try:
with open(token_filename, 'r') as fp_tok:
with open(token_filename, 'r',
encoding='utf-8') as fp_tok:
token = fp_tok.read()
except BaseException as ex:
print('WARN: Unable to read token for ' +
@ -20863,7 +20864,7 @@ def run_daemon(preferred_podcast_formats: [],
max_news_posts: int,
max_mirrored_articles: int,
max_newswire_feed_size_kb: int,
max_newswire_postsPerSource: int,
max_newswire_posts_per_source: int,
show_published_date_only: bool,
voting_time_mins: int,
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 avoids one or two sources from dominating the news,
# 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
httpd.show_published_date_only = show_published_date_only

View File

@ -814,7 +814,7 @@ def run_newswire_daemon(base_dir: str, httpd,
print('Updating newswire feeds')
new_newswire = \
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.maxTags,
httpd.max_feed_item_size_kb,