From 4fba0a9399e180ef69a4e31a1ec74338f3ca048f Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 8 Nov 2022 11:51:32 +0100 Subject: [PATCH] multiline for code readability --- .../obtain_livestream_data_and_load_into_database.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 97e84285..26cef4f5 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 @@ -143,7 +143,17 @@ def insert_entry(cursor, e): planning_data (planning_application_id, planning_application_link, description, registered_with_local_authority_date, decision_date, last_synced_date, status, status_before_aliasing, data_source, data_source_link, uprn) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) - ''', (e["application_id"], application_url, e["description"], date_object_into_date_string(e["registered_with_local_authority_date"]), date_object_into_date_string(e["decision_date"]), date_object_into_date_string(e["last_synced_date"]), e["status"], e["status_before_aliasing"], e["data_source"], e["data_source_link"], e["uprn"])) + ''', ( + e["application_id"], + application_url, e["description"], + date_object_into_date_string(e["registered_with_local_authority_date"]), + date_object_into_date_string(e["decision_date"]), + date_object_into_date_string(e["last_synced_date"]), + e["status"], e["status_before_aliasing"], + e["data_source"], + e["data_source_link"], + e["uprn"]) + ) def date_object_into_date_string(date): if(date == None):