parent
2cfdb44df6
commit
07bb64815d
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ class MVGLiveData(object):
|
||||||
# find the first departure meeting the criteria
|
# find the first departure meeting the criteria
|
||||||
if not _departure['destination'].startswith(self._destination):
|
if not _departure['destination'].startswith(self._destination):
|
||||||
continue
|
continue
|
||||||
|
elif (self._line is not None
|
||||||
|
and _departure['linename'] != self._line):
|
||||||
|
continue
|
||||||
elif _departure['time'] < self._offset:
|
elif _departure['time'] < self._offset:
|
||||||
continue
|
continue
|
||||||
# now select the relevant data
|
# now select the relevant data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue