@@ -57,7 +57,8 @@ class Stop(db.Model):
|
||||
longitude = db.Column(db.Float, nullable=False)
|
||||
# ";"-joined line refs serving this stop (e.g. "693" or "S2;U4;WLB"), from
|
||||
# OSM route relations; empty when unknown. Used by the "Linie" autocomplete.
|
||||
lines = db.Column(db.String(255), nullable=False, default="")
|
||||
# Text, not String(n): big interchanges (Linz Hbf) exceed a few hundred chars.
|
||||
lines = db.Column(db.Text, nullable=False, default="")
|
||||
|
||||
def line_list(self) -> list[str]:
|
||||
return [ref for ref in self.lines.split(";") if ref]
|
||||
|
||||
Reference in New Issue
Block a user