Another fixed await and frequencies typo

This commit is contained in:
Logan Cusano
2025-04-27 02:33:37 -04:00
parent 7bf755d864
commit b75d89b904
2 changed files with 11 additions and 8 deletions

View File

@@ -68,15 +68,18 @@ async def join_server(system_id, guild_id, channel_id):
pass
# Generate the config for the channel requested
chn_config = ConfigGenerator(
tags_list = [TalkgroupTag(**tag_dict) for tag_dict in sys_details.get('tags', []) if tag_dict] if sys_details.get('tags') is not None else None
sys_config = ConfigGenerator(
type=sys_details['decode_mode'],
systemName=sys_details['name'],
frequencys=sys_details['frequency_list_khz'],
tags=sys_details['tags'],
whitelist=sys_details['tag_whitelist'])
frequencies=sys_details['frequency_list_khz'], # Assuming 'channels' is the correct field name
tags=tags_list,
whitelist=sys_details.get('tag_whitelist') # Use .get for optional fields
)
# Set the OP25 config
drb_api.generate_op25_config(chn_config)
await drb_api.generate_op25_config(sys_config)
# Start OP25
await drb_api.start_op25()