X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fba%2Fcommands.py;h=f1e7590392f6849b93c4f325833843582edcf068;hb=f150bf39cb71b67523f36270e4901e7be37704a9;hp=73247eef2b49def0f207d809e091d978752a7450;hpb=9d9935308cb8ca34d3dbf415112c1ce83095b022;p=fba.git diff --git a/fba/commands.py b/fba/commands.py index 73247ee..f1e7590 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1021,7 +1021,7 @@ def fetch_instances(args: argparse.Namespace) -> int: database.cursor.execute( "SELECT domain, origin, software \ FROM instances \ -WHERE software IN ('pleroma', 'mastodon', 'friendica', 'misskey', 'lemmy', 'peertube', 'takahe', 'gotosocial', 'brighteon', 'wildebeest', 'bookwyrm', 'mitra', 'areionskey', 'mammuthus', 'neodb', 'smithereen', 'vebinet', 'hugo') \ +WHERE software IN ('pleroma', 'mastodon', 'friendica', 'misskey', 'lemmy', 'peertube', 'takahe', 'gotosocial', 'brighteon', 'wildebeest', 'bookwyrm', 'mitra', 'areionskey', 'mammuthus', 'neodb', 'smithereen', 'vebinet', 'hugo', 'toki') \ AND (last_instance_fetch IS NULL OR last_instance_fetch < ?) \ ORDER BY total_peers DESC, last_response_time ASC, last_updated ASC", [time.time() - config.get("recheck_instance")] )