From: Roland Häder Date: Wed, 20 Mar 2024 17:09:34 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a442c0a8456b7c077910489540547a9dfedccb63;p=fba.git Continued: - added 'piefed' as possible source for block lists, still the network lacks API for instance list retrival --- diff --git a/fba/commands.py b/fba/commands.py index eb65e7b..b951b63 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -298,12 +298,12 @@ def fetch_blocks(args: argparse.Namespace) -> int: elif args.only_none: # Check only entries with total_blocked=None database.cursor.execute( - "SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'lemmy', 'friendica', 'misskey') AND total_blocks IS NULL ORDER BY total_blocks DESC, last_response_time ASC, last_updated ASC" + "SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'lemmy', 'friendica', 'misskey', 'piefed') AND total_blocks IS NULL ORDER BY total_blocks DESC, last_response_time ASC, last_updated ASC" ) else: # Re-check after "timeout" (aka. minimum interval) database.cursor.execute( - "SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'lemmy', 'friendica', 'misskey') AND nodeinfo_url IS NOT NULL ORDER BY total_blocks DESC, last_response_time ASC, last_updated ASC" + "SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'lemmy', 'friendica', 'misskey', 'piefed') AND nodeinfo_url IS NOT NULL ORDER BY total_blocks DESC, last_response_time ASC, last_updated ASC" ) rows = database.cursor.fetchall()