Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -88,7 +88,7 @@ class Traveloob(ReplApplication):
|
|||
|
||||
Search stations.
|
||||
"""
|
||||
for backend, station in self.do('iter_station_search', pattern):
|
||||
for station in self.do('iter_station_search', pattern):
|
||||
self.format(station)
|
||||
|
||||
@defaultcount(10)
|
||||
|
|
@ -125,7 +125,7 @@ class Traveloob(ReplApplication):
|
|||
print('Please enter a datetime in form "yyyy-mm-dd HH:MM" or "HH:MM".', file=self.stderr)
|
||||
return 1
|
||||
|
||||
for backend, departure in self.do('iter_station_departures', station_id, arrival_id, date, backends=backends):
|
||||
for departure in self.do('iter_station_departures', station_id, arrival_id, date, backends=backends):
|
||||
self.format(departure)
|
||||
|
||||
def do_roadmap(self, line):
|
||||
|
|
@ -154,7 +154,7 @@ class Traveloob(ReplApplication):
|
|||
print('Please enter a datetime in form "yyyy-mm-dd HH:MM" or "HH:MM".', file=self.stderr)
|
||||
return 1
|
||||
|
||||
for backend, route in self.do('iter_roadmap', departure, arrival, filters):
|
||||
for route in self.do('iter_roadmap', departure, arrival, filters):
|
||||
self.format(route)
|
||||
|
||||
def parse_datetime(self, text):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue