lines can be long
Deploy PBT / deploy (push) Successful in 28s

This commit is contained in:
2026-09-10 22:51:46 +02:00
parent 3535ebcba0
commit 36d97f5e79
3 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -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]