From 89e154f9953d35f9f6f6886e9363dc19b58712a7 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Sat, 23 Jul 2022 00:26:18 +0300 Subject: [PATCH] whoops --- fetch_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch_blocks.py b/fetch_blocks.py index 4f1fe71..c84ec57 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -69,9 +69,9 @@ def get_type(domain: str) -> str: if res.ok and "text/html" in res.headers["content-type"]: res = get(f"https://{domain}/nodeinfo/2.1", headers=headers, timeout=5) if res.ok: - if res.json()["software"]["name"] == "akkoma" + if res.json()["software"]["name"] == "akkoma": return "pleroma" - else + else: return res.json()["software"]["name"] elif res.status_code == 404: res = get(f"https://{domain}/api/v1/instance", headers=headers, timeout=5) -- 2.39.5