From ea70fcaf5a9d03f99863db6148b97164d25f8f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Xia?= Date: Mon, 7 Aug 2023 10:45:32 +0200 Subject: [PATCH] Add SNCF station Le Bouscat Sainte-Germaine --- stations.csv | 1 + test_data.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stations.csv b/stations.csv index ebd90891..7aca3703 100644 --- a/stations.csv +++ b/stations.csv @@ -64044,3 +64044,4 @@ id;name;slug;uic;uic8_sncf;latitude;longitude;parent_station_id;country;time_zon 68185;Campitello di Fassa;campitello-di-fassa;;;46.477028;11.74075;;IT;Europe/Rome;t;f;f;t;t;f;;;f;;f;;f;;f;ITCDA;t;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68185; 68186;Carisolo;carisolo;;;46.16902;10.7637;;IT;Europe/Rome;t;f;f;t;t;f;;;f;;f;;f;;f;ITCIO;t;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68186; 68187;Ancenis Bis;ancenis-bis;8774417;87744177;47.36930;-1.17780;2186;FR;Europe/Paris;f;f;f;f;f;f;FRKGW;;t;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68187; +68188;Le Bouscat Sainte-Germaine;le-bouscat-sainte-germaine;;87738096;44.87090;-0.61400;;FR;Europe/Paris;f;f;f;t;t;f;FRKTO;;t;;f;;f;;f;;f;;f;;f;;f;;f;;f;;f;;;;f;;f;;f;;f;;f;;f;f;;;;;;;;;;;;;;;;;;;;urn:trainline:public:nloc:csv68188; diff --git a/test_data.rb b/test_data.rb index 74c50411..b82b8af0 100644 --- a/test_data.rb +++ b/test_data.rb @@ -383,7 +383,7 @@ def test_uic8_sncf STATIONS.each do |row| uic8_sncf = row["uic8_sncf"] uic = row["uic"] - if !uic8_sncf.nil? && !Constants::UIC8_WHITELIST_IDS.include?(row["id"]) + if uic.present? && !uic8_sncf.nil? && !Constants::UIC8_WHITELIST_IDS.include?(row["id"]) assert uic == uic8_sncf[0...-1], "Station #{row["name"]} (#{row["id"]}) has an incoherent uic8_sncf code" end end