From b92450770d1926bd26aa435ceb13274dcd84564f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 25 Dec 2021 21:34:53 +0000 Subject: [PATCH] Snake case --- daemon.py | 6 +++--- epicyon.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index da2d0ad74..41b4e6785 100644 --- a/daemon.py +++ b/daemon.py @@ -3342,7 +3342,7 @@ class PubServer(BaseHTTPRequestHandler): base_dir, http_prefix, searchStr, - self.server.instanceOnlySkillsSearch, + self.server.instance_only_skills_search, 64) if skillStr: msg = skillStr.encode('utf-8') @@ -18481,7 +18481,7 @@ def runDaemon(content_license_url: str, account_max_posts_per_day: int = 864, allow_deletion: bool = False, debug: bool = False, unit_test: bool = False, - instanceOnlySkillsSearch: bool = False, + instance_only_skills_search: bool = False, sendThreads: [] = [], manualFollowerApproval: bool = True) -> None: if len(domain) == 0: @@ -18761,7 +18761,7 @@ def runDaemon(content_license_url: str, httpd.tokens = {} httpd.tokensLookup = {} loadTokens(base_dir, httpd.tokens, httpd.tokensLookup) - httpd.instanceOnlySkillsSearch = instanceOnlySkillsSearch + httpd.instance_only_skills_search = instance_only_skills_search # contains threads used to send posts to followers httpd.followersThreads = [] diff --git a/epicyon.py b/epicyon.py index 5f3b8bb0b..546404e81 100644 --- a/epicyon.py +++ b/epicyon.py @@ -433,7 +433,7 @@ parser.add_argument("--secure_mode", type=str2bool, nargs='?', help="Requires all GET requests to be signed, " + "so that the sender can be identifies and " + "blocked if neccessary") -parser.add_argument("--instanceOnlySkillsSearch", type=str2bool, nargs='?', +parser.add_argument("--instance_only_skills_search", type=str2bool, nargs='?', const=True, default=False, help="Skills searches only return " + "results from this instance") @@ -3257,5 +3257,5 @@ if __name__ == "__main__": args.domain_max_posts_per_day, args.account_max_posts_per_day, args.allowdeletion, debug, False, - args.instanceOnlySkillsSearch, [], + args.instance_only_skills_search, [], not args.noapproval)