mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
domain_from_appid: Return none string
This commit is contained in:
@@ -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.")
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user