From: Roland Häder Date: Mon, 24 Jul 2023 11:17:08 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b86308e05490f3c3ee2f3419df8931ecbb8b2582;p=fba.git Continued: - radiant is being "detected" as mastodon and needs to be skipped - unless forced, skip any recently checked nodeinfos --- diff --git a/fba/commands.py b/fba/commands.py index 00a28fe..359d9c2 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1680,6 +1680,10 @@ def update_nodeinfo(args: argparse.Namespace) -> int: cnt = 0 for row in domains: logger.debug("row[]='%s'", type(row)) + if not args.force and instances.is_recent(row["domain"], "last_nodeinfo"): + logger.debug("row[domain]='%s' has been recently checked - SKIPPED!", row["domain"]) + continue + try: logger.info("Checking nodeinfo for row[domain]='%s',row[software]='%s' (%s%%) ...", row["domain"], row["software"], "{:5.1f}".format(cnt / len(domains) * 100)) software = federation.determine_software(row["domain"]) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 98b5297..6882608 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -34,6 +34,9 @@ def alias(software: str) -> str: if software in ["akkoma", "rebased", "akkounfucked", "ched", "incestoma"]: logger.debug("Setting pleroma: software='%s'", software) software = "pleroma" + elif "radiant" in software: + logger.debug("Setting radiant: software='%s'", software) + sofware = "radiant" elif software in ["hometown", "ecko", "fedibird" ] or "되는 마스토돈" in software or "mastodon" in software: logger.debug("Setting mastodon: software='%s'", software) software = "mastodon"