]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 24 Jul 2023 11:17:08 +0000 (13:17 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 24 Jul 2023 11:17:08 +0000 (13:17 +0200)
- radiant is being "detected" as mastodon and needs to be skipped
- unless forced, skip any recently checked nodeinfos

fba/commands.py
fba/helpers/software.py

index 00a28fe31049cb9705e98a39386282ab55c2b4d3..359d9c2b82553b8847f9e58dd64dc5dfae2eff4b 100644 (file)
@@ -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"])
index 98b5297a1ced22fa1c333b74f341867f8cfa073b..68826081611e04fc26a6f2e44bd2ee45277aaa4c 100644 (file)
@@ -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"