fix filter check in Proxy.check_routes

and test that check_routes works as intended
This commit is contained in:
Min RK
2015-02-11 11:16:41 -08:00
parent edfb39c74c
commit 7082ea60ee
3 changed files with 24 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ class Proxy(Base):
if not routes:
routes = yield self.get_routes()
have_routes = { r['user'] for r in routes if 'user' in r }
have_routes = { r['user'] for r in routes.values() if 'user' in r }
futures = []
db = inspect(self).session
for user in db.query(User).filter(User.server != None):