diff --git a/etl/planning_data/obtain_livestream_data_and_load_into_database.py b/etl/planning_data/obtain_livestream_data_and_load_into_database.py index e86f1a64..64413ecf 100644 --- a/etl/planning_data/obtain_livestream_data_and_load_into_database.py +++ b/etl/planning_data/obtain_livestream_data_and_load_into_database.py @@ -168,6 +168,8 @@ def process_status(status, decision_date): status = "Approved" if status in [None, "NOT_MAPPED"]: status = "Unknown" + if status in ["Lapsed"]: + status = "Withdrawn" if (status in ["Submitted", "Approved", "Rejected", "Appeal In Progress", "Withdrawn", "Unknown"]): return status print("Unexpected status " + status)