From 181ac45bbf83c65747009b1120889e0160fb3fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 12 Jan 2023 16:06:01 +0100 Subject: [PATCH] refactor: Rename load_remote_blocklist->load_blocklist_from_instance --- mastodon_blocklist_deploy/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon_blocklist_deploy/cli.py b/mastodon_blocklist_deploy/cli.py index b049471..c7d5607 100644 --- a/mastodon_blocklist_deploy/cli.py +++ b/mastodon_blocklist_deploy/cli.py @@ -43,7 +43,7 @@ def blocklist_json_to_instances(blocklist_json: str) -> [Instance]: return instances -def load_remote_blocklist(server: str, token: str) -> [Instance]: +def load_blocklist_from_instance(server: str, token: str) -> [Instance]: headers = { f'Authorization': f'Bearer {token}', } @@ -81,7 +81,7 @@ def cli(): with open(args.remote_blocklist) as f: remote_blocklist = blocklist_json_to_instances(json.load(f)) else: - remote_blocklist = load_remote_blocklist(server=args.server, token=args.token) + remote_blocklist = load_blocklist_from_instance(server=args.server, token=args.token) """Load local blocklist only when needed""" if args.action in ["diff", "deploy"]: