Skip to content

Commit

Permalink
bugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudGunMan committed Nov 28, 2024
1 parent 62f73ce commit 6d3b754
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@
wxAlertBroadcastEnabled = config['location'].getboolean('wxAlertBroadcastEnabled', False) # default False
# brodcast channel for weather alerts
wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh')
if ',' in wxAlertBroadcastChannel:
wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh').split(',')
else:
wxAlertBroadcastChannel = config['location'].getint('wxAlertBroadcastCh', 2) # default 2
if wxAlertBroadcastChannel:
if ',' in wxAlertBroadcastChannel:
wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh').split(',')
else:
wxAlertBroadcastChannel = config['location'].getint('wxAlertBroadcastCh', 2) # default 2

# bbs
bbs_enabled = config['bbs'].getboolean('enabled', False)
Expand Down

0 comments on commit 6d3b754

Please sign in to comment.