Weboob.iter_backends() does not return backend name anymore
This commit is contained in:
parent
3ea53cd2f0
commit
daa27da3ce
10 changed files with 20 additions and 20 deletions
|
|
@ -35,7 +35,7 @@ class Travel(ConsoleApplication):
|
|||
print '| ID | Name |'
|
||||
print '+--------------------------------+---------------------------------------------+'
|
||||
count = 0
|
||||
for name, backend, in self.weboob.iter_backends():
|
||||
for backend, in self.weboob.iter_backends():
|
||||
for station in backend.iter_station_search(pattern):
|
||||
print '| %-31s| %-44s|' % (station.id, station.name)
|
||||
count += 1
|
||||
|
|
@ -49,7 +49,7 @@ class Travel(ConsoleApplication):
|
|||
print "| ID | Type | Time | Arrival | Late | Info | Plateform |"
|
||||
print "+-----+-----------+-------+-----------------------+-------+--------------------+-----------+"
|
||||
count = 0
|
||||
for name, backend, in self.weboob.iter_backends():
|
||||
for backend, in self.weboob.iter_backends():
|
||||
for departure in backend.iter_station_departures(station, arrival):
|
||||
print u"|%4d | %-10s|%6s | %-22s|%6s | %-19s| %-10s|" % (departure.id,
|
||||
departure.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue