domain_from_appid: Return none string

This commit is contained in:
bbhtt
2025-08-09 10:19:26 +05:30
parent 006286498b
commit 35e4389109
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ def demangle(name: str) -> str:
return name.replace("_", "-")
def get_domain(appid: str) -> str | None:
def get_domain(appid: str) -> str:
if appid.startswith(LOGINS) or appid.count(".") < 2:
return None
return "None"
elif appid.startswith(
("io.frama.", "page.codeberg.", "io.sourceforge.", "net.sourceforge.")
):