getAlertZones now returns the primary county in its list

This commit is contained in:
April 2022-11-04 20:41:33 -07:00
parent 3716287338
commit a0c142183a
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -59,6 +59,9 @@ def getAlertZones():
for x in i['@value'].split(','):
zones.append(x)
if i['@key'] == 'primaryCounty' and i['@value'] != "":
zones.append(i['@value'])
if i['@key'] == "secondaryCounties" and i['@value'] != "":
for x in i['@value'].split(','):
zones.append(x)