Fix IDFM and CTS line display

This commit is contained in:
Emmy D'Anello 2024-05-12 01:40:47 +02:00
parent 86d274ac84
commit 7ed0924108
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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