Fix IDFM and CTS line display
This commit is contained in:
parent
86d274ac84
commit
7ed0924108
|
@ -244,7 +244,8 @@ function getTrainType(train, trip, route) {
|
||||||
default:
|
default:
|
||||||
return trainType
|
return trainType
|
||||||
}
|
}
|
||||||
case "FR-IDF-TN":
|
case "FR-IDF-IDFM":
|
||||||
|
case "FR-GES-CTS":
|
||||||
return route.short_name
|
return route.short_name
|
||||||
case "FR-EUROSTAR":
|
case "FR-EUROSTAR":
|
||||||
return "Eurostar"
|
return "Eurostar"
|
||||||
|
|
|
@ -514,14 +514,14 @@ class Trip(models.Model):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def train_type(self):
|
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
|
return self.route.short_name
|
||||||
else:
|
else:
|
||||||
return self.origin.stop_type
|
return self.origin.stop_type
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def train_number(self):
|
def train_number(self):
|
||||||
if self.gtfs_feed.code == "FR-IDF-TN":
|
if self.gtfs_feed.code == "FR-IDF-IDFM":
|
||||||
return self.short_name
|
return self.short_name
|
||||||
else:
|
else:
|
||||||
return self.headsign
|
return self.headsign
|
||||||
|
|
Loading…
Reference in New Issue