From 7ed092410891c0d949807f400d336b50237b188c Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 12 May 2024 01:40:47 +0200 Subject: [PATCH] Fix IDFM and CTS line display --- trainvel-front/src/TrainsTable.js | 3 ++- trainvel/gtfs/models.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/trainvel-front/src/TrainsTable.js b/trainvel-front/src/TrainsTable.js index b81bfca..947e3c1 100644 --- a/trainvel-front/src/TrainsTable.js +++ b/trainvel-front/src/TrainsTable.js @@ -244,7 +244,8 @@ function getTrainType(train, trip, route) { default: return trainType } - case "FR-IDF-TN": + case "FR-IDF-IDFM": + case "FR-GES-CTS": return route.short_name case "FR-EUROSTAR": return "Eurostar" diff --git a/trainvel/gtfs/models.py b/trainvel/gtfs/models.py index 9f764f2..69e892a 100644 --- a/trainvel/gtfs/models.py +++ b/trainvel/gtfs/models.py @@ -514,14 +514,14 @@ class Trip(models.Model): @property def train_type(self): - if self.gtfs_feed.code == "FR-IDF-TN": + if self.gtfs_feed.code == "FR-IDF-IDFM": return self.route.short_name else: return self.origin.stop_type @property def train_number(self): - if self.gtfs_feed.code == "FR-IDF-TN": + if self.gtfs_feed.code == "FR-IDF-IDFM": return self.short_name else: return self.headsign