fix bad behaviors
This commit is contained in:
parent
a60def6820
commit
cbefbe81d2
5 changed files with 17 additions and 14 deletions
|
|
@ -146,6 +146,7 @@ class Flatboob(ReplApplication):
|
|||
query.cost_min = self.ask_int('Enter min cost')
|
||||
query.cost_max = self.ask_int('Enter max cost')
|
||||
|
||||
self.change_path('/housings')
|
||||
for backend, housing in self.do('search_housings', query):
|
||||
self.add_object(housing)
|
||||
self.format(housing)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ class WetBoobs(ReplApplication):
|
|||
|
||||
Search cities.
|
||||
"""
|
||||
self.change_path('/cities')
|
||||
for backend, city in self.do('iter_city_search', pattern, caps=ICapWeather):
|
||||
self.add_object(city)
|
||||
self.format(city)
|
||||
|
|
@ -142,6 +143,7 @@ class WetBoobs(ReplApplication):
|
|||
|
||||
List all rivers. If PATTERN is specified, search on a pattern.
|
||||
"""
|
||||
self.change_path('/gauges')
|
||||
for backend, gauge in self.do('iter_gauges', pattern or None, caps=ICapWaterLevel):
|
||||
self.add_object(gauge)
|
||||
self.format(gauge)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue