Better management of GTFS realtime

This commit is contained in:
2024-05-08 10:30:25 +02:00
parent 9f3c031851
commit 2277d2fe64
3 changed files with 171 additions and 125 deletions

View File

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