Update load_csv_to_staging.py
Updates to bring staging script into line with main upload script - Script was not working
This commit is contained in:
parent
eccf0f5b04
commit
bdd3462e99
@ -61,6 +61,11 @@ def update_building(building_id, data, api_key, base_url):
|
|||||||
|
|
||||||
|
|
||||||
def find_building(data, base_url):
|
def find_building(data, base_url):
|
||||||
|
if 'building_id' in data:
|
||||||
|
building_id = data['building_id']
|
||||||
|
if building_id is not None:
|
||||||
|
print("match_by_building_id", building_id)
|
||||||
|
return building_id
|
||||||
if 'toid' in data:
|
if 'toid' in data:
|
||||||
building_id = find_by_reference(base_url, 'toid', data['toid'])
|
building_id = find_by_reference(base_url, 'toid', data['toid'])
|
||||||
if building_id is not None:
|
if building_id is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user