From f1c81b17783079a66d9e1c219d18dff9c6fb800e Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny <matkoniecz@gmail.com> Date: Mon, 7 Nov 2022 10:51:09 +0100 Subject: [PATCH] more aliasing --- .../obtain_livestream_data_and_load_into_database.py | 2 ++ 1 file changed, 2 insertions(+) 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)