From 288527a76a29970c1ffa168ccb0d6fa2622dc5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 11 Jan 2023 20:40:05 +0100 Subject: [PATCH] Formatting --- models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index af969e5..f2281a8 100644 --- a/models.py +++ b/models.py @@ -71,9 +71,11 @@ class Instance: if block_id is None: response = requests.post(f'https://{server}/api/v1/admin/domain_blocks', data=data, headers=headers) else: - response = requests.put(f'https://{server}/api/v1/admin/domain_blocks/{block_id}', data=data, headers=headers) + response = requests.put(f'https://{server}/api/v1/admin/domain_blocks/{block_id}', data=data, + headers=headers) if response.status_code != 200: raise ConnectionError(f"Could not apply block ({response.status_code}: {response.reason})") + def delete(self, server: str, token: str): headers = { f'Authorization': f'Bearer {token}', @@ -82,7 +84,6 @@ class Instance: if response.status_code != 200: raise ConnectionError(f"Could not apply block ({response.status_code}: {response.reason})") - @staticmethod def list_diffs(local_blocklist, remote_blocklist): diffs = []