Bug fix
This commit is contained in:
parent
bc6fc33cda
commit
8c5b8400ca
|
@ -84,8 +84,8 @@ class Trip:
|
||||||
if not (depart := (travel["depart"] and utils.as_date(travel["depart"]))):
|
if not (depart := (travel["depart"] and utils.as_date(travel["depart"]))):
|
||||||
continue
|
continue
|
||||||
for when, from_or_to in ((self.start, "from"), (self.end, "to")):
|
for when, from_or_to in ((self.start, "from"), (self.end, "to")):
|
||||||
if depart != when and travel["from_or_to"] not in titles:
|
if depart != when and travel[from_or_to] not in titles:
|
||||||
titles.append(travel["from_or_to"])
|
titles.append(travel[from_or_to])
|
||||||
return titles
|
return titles
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue