Missing line name restriction added (fixes #7039) (#7040)

This commit is contained in:
David Straub 2017-04-11 13:55:42 +02:00 committed by Fabian Affolter
parent 2cfdb44df6
commit 07bb64815d

View file

@ -143,6 +143,9 @@ class MVGLiveData(object):
# find the first departure meeting the criteria
if not _departure['destination'].startswith(self._destination):
continue
elif (self._line is not None
and _departure['linename'] != self._line):
continue
elif _departure['time'] < self._offset:
continue
# now select the relevant data