From a53257eca445c30ad6d65ad2f0b00c599f9052ac Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 16:39:43 +0200 Subject: Update parser fields mail -> email since it's unambiguous Also changed 'Concertes' source to 'ConcertES' since it is the group name on IN COMMON and the name of the Agent, to facilitate data import. --- doc/import/parser.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/import') diff --git a/doc/import/parser.rb b/doc/import/parser.rb index 1c5d217..06566d7 100644 --- a/doc/import/parser.rb +++ b/doc/import/parser.rb @@ -28,7 +28,7 @@ class Parser new_item["properties"]["entry_number"] = data[i]["pk"] new_item["properties"]["phone_number"] = data[i]["fields"]["phone"] new_item["properties"]["website"] = data[i]["fields"]["web"] - new_item["properties"]["mail"] = data[i]["fields"]["email"] + new_item["properties"]["email"] = data[i]["fields"]["email"] new_item["properties"]["address"] = data[i]["fields"]["address"] new_item["properties"]["city"] = "" #No equivalent in Dewey database new_item["properties"]["postal_code"] = "" #No equivalent in Dewey database @@ -59,12 +59,12 @@ class Parser new_item["properties"]["entry_number"] = data[i]["NumEntr"] new_item["properties"]["phone_number"] = coord[i]["Tel"] new_item["properties"]["website"] = coord[i]["Web"] - new_item["properties"]["mail"] = coord[i]["Email"] + new_item["properties"]["email"] = coord[i]["Email"] new_item["properties"]["address"] = coord[i]["Adresse"] new_item["properties"]["city"] = data[i]["INS_COMMUNE"] new_item["properties"]["postal_code"] = coord[i]["Code postal"] new_item["properties"]["categories"] = [] - new_item["properties"]["source"] = "Concertes" + new_item["properties"]["source"] = "ConcertES" new_item["properties"]["srid"] = "4326" #Not precised in Concertes database @list_of_locations["features"].push(new_item) i += 1 -- cgit v1.2.3