Better management of GTFS realtime
This commit is contained in:
@ -217,7 +217,7 @@ class Stop(models.Model):
|
||||
|
||||
@property
|
||||
def stop_type(self):
|
||||
train_type = self.id.split('StopPoint:OCE')[1].split('-')[0]
|
||||
train_type = self.id.split('StopPoint:OCE')[-1].split('StopArea:OCE')[-1].split('-')[0]
|
||||
return train_type
|
||||
|
||||
def __str__(self):
|
||||
|
Reference in New Issue
Block a user