Snake case

main
Bob Mottram 2021-12-25 21:34:53 +00:00
parent b8d460b496
commit b92450770d
2 changed files with 5 additions and 5 deletions

View File

@ -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 = []

View File

@ -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)