mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-06-10 05:30:00 -05:00
Grab county locations for alert areas
This commit is contained in:
@ -40,7 +40,7 @@ def getAirportCodes():
|
||||
|
||||
return airports
|
||||
|
||||
def getZones():
|
||||
def getAlertZones():
|
||||
""" Returns a list of zones present in the MachineProductCfg """
|
||||
zones = []
|
||||
for i in data['Config']['ConfigDef']['ConfigItems']['ConfigItem']:
|
||||
@ -51,6 +51,8 @@ def getZones():
|
||||
for x in i['@value'].split(','):
|
||||
zones.append(x)
|
||||
|
||||
return zones
|
||||
if i['@key'] == "secondaryCounties" and i['@value'] != "":
|
||||
for x in i['@value'].split(','):
|
||||
zones.append(x)
|
||||
|
||||
print(getZones())
|
||||
return zones
|
Reference in New Issue
Block a user