From 9158e7ba2a32c059d6e5bd5296c23e10e71f16ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 15 May 2023 00:30:36 +0200 Subject: [PATCH] Continued: - also a blocks.db-journal is being written, so let's ignore all - the software's name is misskey, no need to slur it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .gitignore | 2 +- fetch_blocks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e8eb51e..709bb92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -blocks.db +blocks.db* __pycache__/ venv/ config.json diff --git a/fetch_blocks.py b/fetch_blocks.py index 3045eaa..aa09da5 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -116,7 +116,7 @@ def get_friendica_blocks(domain: str) -> dict: "reject": blocks } -def get_pisskey_blocks(domain: str) -> dict: +def get_misskey_blocks(domain: str) -> dict: blocks = { "suspended": [], "blocked": [] @@ -422,7 +422,7 @@ for blocker, software in c.fetchall(): if software == "friendica": json = get_friendica_blocks(blocker) elif software == "misskey": - json = get_pisskey_blocks(blocker) + json = get_misskey_blocks(blocker) for block_level, blocks in json.items(): for instance in blocks: blocked, reason = instance.values() -- 2.39.5