Snake case

main
Bob Mottram 2021-12-25 20:09:29 +00:00
parent 811b064117
commit 9b9726a417
3 changed files with 9 additions and 9 deletions

View File

@ -18443,7 +18443,7 @@ def runDaemon(content_license_url: str,
max_followers: int, max_followers: int,
max_news_posts: int, max_news_posts: int,
max_mirrored_articles: int, max_mirrored_articles: int,
maxNewswireFeedSizeKb: int, max_newswire_feed_size_kb: int,
max_newswire_postsPerSource: int, max_newswire_postsPerSource: int,
show_published_date_only: bool, show_published_date_only: bool,
votingTimeMins: int, votingTimeMins: int,
@ -18638,7 +18638,7 @@ def runDaemon(content_license_url: str,
httpd.newswireVotesThreshold = newswireVotesThreshold httpd.newswireVotesThreshold = newswireVotesThreshold
# maximum overall size of an rss/atom feed read by the newswire daemon # maximum overall size of an rss/atom feed read by the newswire daemon
# If the feed is too large then this is probably a DoS attempt # If the feed is too large then this is probably a DoS attempt
httpd.maxNewswireFeedSizeKb = maxNewswireFeedSizeKb httpd.max_newswire_feed_size_kb = max_newswire_feed_size_kb
# For each newswire source (account or rss feed) # For each newswire source (account or rss feed)
# this is the maximum number of posts to show for each. # this is the maximum number of posts to show for each.

View File

@ -196,7 +196,7 @@ parser.add_argument('--max_newswire_posts',
default=20, default=20,
help='Maximum newswire posts in the right column') help='Maximum newswire posts in the right column')
parser.add_argument('--maxFeedSize', parser.add_argument('--maxFeedSize',
dest='maxNewswireFeedSizeKb', type=int, dest='max_newswire_feed_size_kb', type=int,
default=10240, default=10240,
help='Maximum newswire rss/atom feed size in K') help='Maximum newswire rss/atom feed size in K')
parser.add_argument('--max_feed_item_size_kb', parser.add_argument('--max_feed_item_size_kb',
@ -3038,10 +3038,10 @@ if max_newswire_posts:
args.max_newswire_posts = int(max_newswire_posts) args.max_newswire_posts = int(max_newswire_posts)
# set the maximum size of a newswire rss/atom feed in Kilobytes # set the maximum size of a newswire rss/atom feed in Kilobytes
maxNewswireFeedSizeKb = \ max_newswire_feed_size_kb = \
getConfigParam(base_dir, 'maxNewswireFeedSizeKb') getConfigParam(base_dir, 'max_newswire_feed_size_kb')
if maxNewswireFeedSizeKb: if max_newswire_feed_size_kb:
args.maxNewswireFeedSizeKb = int(maxNewswireFeedSizeKb) args.max_newswire_feed_size_kb = int(max_newswire_feed_size_kb)
max_mirrored_articles = \ max_mirrored_articles = \
getConfigParam(base_dir, 'max_mirrored_articles') getConfigParam(base_dir, 'max_mirrored_articles')
@ -3235,7 +3235,7 @@ if __name__ == "__main__":
args.max_followers, args.max_followers,
args.max_news_posts, args.max_news_posts,
args.max_mirrored_articles, args.max_mirrored_articles,
args.maxNewswireFeedSizeKb, args.max_newswire_feed_size_kb,
args.max_newswire_postsPerSource, args.max_newswire_postsPerSource,
args.dateonly, args.dateonly,
args.votingtime, args.votingtime,

View File

@ -797,7 +797,7 @@ def runNewswireDaemon(base_dir: str, httpd,
newNewswire = \ newNewswire = \
getDictFromNewswire(httpd.session, base_dir, domain, getDictFromNewswire(httpd.session, base_dir, domain,
httpd.max_newswire_postsPerSource, httpd.max_newswire_postsPerSource,
httpd.maxNewswireFeedSizeKb, httpd.max_newswire_feed_size_kb,
httpd.maxTags, httpd.maxTags,
httpd.max_feed_item_size_kb, httpd.max_feed_item_size_kb,
httpd.max_newswire_posts, httpd.max_newswire_posts,