Fix bug with active system name
This commit is contained in:
@@ -153,6 +153,6 @@ def get_current_system_from_config() -> str:
|
|||||||
if not data:
|
if not data:
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
return data.get("trunking", {}).get("sysname", "Unknown System")
|
return data.get("trunking", {}).get("chans", [{}])[0].get("sysname", "Unknown System")
|
||||||
except:
|
except:
|
||||||
return "Unknown System"
|
return "Unknown System"
|
||||||
Reference in New Issue
Block a user