From: Roland Häder Date: Sun, 14 May 2023 22:30:36 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9158e7ba2a32c059d6e5bd5296c23e10e71f16ac;p=fba.git 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 Signed-off-by: Roland Häder --- 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()