From de7796d68975116a56450258ec82a567e1dac96d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 10 Dec 2023 23:44:35 +0100 Subject: [PATCH] Continued: - added alias 'goblin' for 'misskey' - added debug line --- fba/commands.py | 1 + fba/helpers/software.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fba/commands.py b/fba/commands.py index c87e624..2e36ee4 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -959,6 +959,7 @@ def fetch_instances(args: argparse.Namespace) -> int: origin = row["origin"] software = row["software"] + logger.debug("software='%s'", software) if software is None: logger.warning("args.domain='%s' has no software detected. You can try to run ./fba.py update_nodeinfo --domain=%s --force to get it updated.", args.domain, args.domain) return 102 diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 821660d..285ff15 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -55,7 +55,7 @@ def alias(software: str) -> str: elif software in ["hometown", "ecko", "fedibird", "glitchcafe"] or "되는 마스토돈" in software or "mastodon" in software: logger.debug("Setting mastodon: software='%s'", software) software = "mastodon" - elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey", "sharkey", "renekey", "renekey-lite", "yoiyami", "catnip", "cyberskey", "catodon", "lycheebridge"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software: + elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey", "sharkey", "renekey", "renekey-lite", "yoiyami", "catnip", "cyberskey", "catodon", "lycheebridge", "goblin"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software: logger.debug("Setting misskey: software='%s'", software) software = "misskey" elif software in ["runtube.re", "islameye"]: -- 2.39.5