fix name reference

This commit is contained in:
Cort Buffington committed 2025-08-29 18:34:03 -05:00
1 parent cb921f1131
commit e3ab4b1e07
1 file changed
+9 -2
+9 -2
View File
@@ -94,8 +94,15 @@ class RepeaterMatcher:
"""
def __init__(self, config: Dict[str, Any]):
self.blacklist = self._parse_blacklist(config.get('blacklist', {"patterns": []}))
self.patterns = self._parse_patterns(config['repeaters']['patterns'])
self.default_config = RepeaterConfig(**config['repeaters']['default'])
repeater_config = config.get('repeater_configurations', config.get('repeaters', {}))
self.patterns = self._parse_patterns(repeater_config.get('patterns', []))
self.default_config = RepeaterConfig(**repeater_config.get('default', {
"enabled": True,
"timeout": 30,
"passphrase": "passw0rd",
"talkgroups": [8],
"description": "Default Repeater Configuration"
}))
def _parse_blacklist(self, blacklist_config: Dict[str, Any]) -> List[BlacklistMatch]:
"""Parse blacklist patterns from config"""