This commit is contained in:
Mateusz Konieczny 2022-11-05 08:29:14 +01:00
parent 5d2a19bc61
commit bef2beb5c7

View File

@ -65,7 +65,7 @@ def load_data_into_database(cursor, data):
"data_source_link": None "data_source_link": None
} }
if "Hackney" in entry["application_id"]: if "Hackney" in entry["application_id"]:
entry["application_url"] != None: if entry["application_url"] != None:
if "https://" not in entry["application_url"]: if "https://" not in entry["application_url"]:
entry["application_url"] = "https://developmentandhousing.hackney.gov.uk" + entry["application_url"] entry["application_url"] = "https://developmentandhousing.hackney.gov.uk" + entry["application_url"]
insert_entry(cursor, entry) insert_entry(cursor, entry)