X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fetch_instances.py;h=63a8fa793fac486f3933c2e142fc113334907fad;hb=081d47c1784379b4e7d7104c239c40f106f7bcf1;hp=c63803bb5ff066eadfce34349224b90016146122;hpb=68cf3aa7573343e9f9bd923b444b347b810fb1db;p=fba.git diff --git a/fetch_instances.py b/fetch_instances.py old mode 100644 new mode 100755 index c63803b..63a8fa7 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -1,3 +1,6 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + # Fedi API Block - An aggregator for fetching blocking data from fediverse nodes # Copyright (C) 2023 Free Software Foundation # @@ -33,7 +36,7 @@ def fetch_instances(domain: str, origin: str, software: str, path: str = None): if (peerlist is None): print("ERROR: Cannot fetch peers:", domain) return - elif domain in fba.nodeinfos["get_peers_url"]: + elif fba.has_pending_nodeinfos(domain): # NOISY-DEBUG: print(f"DEBUG: domain='{domain}' has pending nodeinfo data, flushing ...") fba.update_nodeinfos(domain)