support unknown status
This commit is contained in:
parent
ac7a11a805
commit
def260e584
@ -334,6 +334,10 @@
|
|||||||
<Filter>[status] = "Withdrawn"</Filter>
|
<Filter>[status] = "Withdrawn"</Filter>
|
||||||
<PolygonSymbolizer fill="#999999"/>
|
<PolygonSymbolizer fill="#999999"/>
|
||||||
</Rule>
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>[status] = "Unknown"</Filter>
|
||||||
|
<PolygonSymbolizer fill="#eacad0"/>
|
||||||
|
</Rule>
|
||||||
</Style>
|
</Style>
|
||||||
<Style name="planning_combined">
|
<Style name="planning_combined">
|
||||||
<Rule>
|
<Rule>
|
||||||
|
@ -178,6 +178,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
{ color: '#fff200', text: 'Appeal In Progress' },
|
{ color: '#fff200', text: 'Appeal In Progress' },
|
||||||
{ color: '#e31d23', text: 'Refused' },
|
{ color: '#e31d23', text: 'Refused' },
|
||||||
{ color: '#999999', text: 'Withdrawn' },
|
{ color: '#999999', text: 'Withdrawn' },
|
||||||
|
{ color: '#eacad0', text: 'Unknown' },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -54,7 +54,7 @@ def main():
|
|||||||
last_synced_date = parse_date_string_into_datestring(entry['_source']['last_synced'])
|
last_synced_date = parse_date_string_into_datestring(entry['_source']['last_synced'])
|
||||||
uprn = entry['_source']['uprn']
|
uprn = entry['_source']['uprn']
|
||||||
status = entry['_source']['status']
|
status = entry['_source']['status']
|
||||||
if status in ["No Objection to Proposal (OBS only)", "Not Required", None, "Lapsed", "Unknown", "SECS", "Comment Issued"]:
|
if status in ["No Objection to Proposal (OBS only)", "Not Required", None, "Lapsed", "SECS", "Comment Issued"]:
|
||||||
continue
|
continue
|
||||||
if status in []:
|
if status in []:
|
||||||
opts = jsbeautifier.default_options()
|
opts = jsbeautifier.default_options()
|
||||||
@ -65,7 +65,7 @@ def main():
|
|||||||
status = "Rejected"
|
status = "Rejected"
|
||||||
if status == "Appeal Received":
|
if status == "Appeal Received":
|
||||||
status = "Appeal In Progress"
|
status = "Appeal In Progress"
|
||||||
if (status not in ["Approved", "Rejected", "Appeal In Progress", "Withdrawn", ]):
|
if (status not in ["Approved", "Rejected", "Appeal In Progress", "Withdrawn", "Unknown"]):
|
||||||
raise Exception("Unexpected status " + status)
|
raise Exception("Unexpected status " + status)
|
||||||
if uprn == None:
|
if uprn == None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user