drop linking as we have no link to share

This commit is contained in:
Mateusz Konieczny 2022-11-01 20:18:21 +01:00
parent ce339ea339
commit 32076a9012
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps
<Fragment> <Fragment>
<InfoBox type='success'> <InfoBox type='success'>
<Fragment> <Fragment>
<div><i>Planning application status is streamed using live data uploaded by local authorities to the <a href={item["data_source_link"]}>{item["data_source"]}</a>.</i></div> <div><i>Planning application status is streamed using live data uploaded by local authorities to the {item["data_source_link"] ? <a href={item["data_source_link"]}>{item["data_source"]}</a> : item["data_source"] }.</i></div>
<br/> <br/>
<div><b>Current planning application status for this site:</b> {ShowIfAvailable(item["status"])}</div> <div><b>Current planning application status for this site:</b> {ShowIfAvailable(item["status"])}</div>
<div><b>Planning application ID:</b> {ShowIfAvailable(item["planning_application_id"])}</div> <div><b>Planning application ID:</b> {ShowIfAvailable(item["planning_application_id"])}</div>

View File

@ -62,7 +62,7 @@ def load_data_into_database(cursor, data):
"uprn": uprn, "uprn": uprn,
"status": status, "status": status,
"data_source": "Greater London Authority's Planning London DataHub", "data_source": "Greater London Authority's Planning London DataHub",
"data_source_link": "https://data.london.gov.uk/dataset/planning-london-datahub?_gl=1%2aprwpc%2a_ga%2aMzQyOTg0MjcxLjE2NTk0NDA4NTM", # TODO not an actual source... "data_source_link": None
} }
insert_entry(cursor, entry) insert_entry(cursor, entry)
except TypeError as e: except TypeError as e: