more aliasing

This commit is contained in:
Mateusz Konieczny 2022-11-07 10:51:09 +01:00
parent 1de5c51209
commit f1c81b1778

View File

@ -168,6 +168,8 @@ def process_status(status, decision_date):
status = "Approved" status = "Approved"
if status in [None, "NOT_MAPPED"]: if status in [None, "NOT_MAPPED"]:
status = "Unknown" status = "Unknown"
if status in ["Lapsed"]:
status = "Withdrawn"
if (status in ["Submitted", "Approved", "Rejected", "Appeal In Progress", "Withdrawn", "Unknown"]): if (status in ["Submitted", "Approved", "Rejected", "Appeal In Progress", "Withdrawn", "Unknown"]):
return status return status
print("Unexpected status " + status) print("Unexpected status " + status)