We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe1773 commit 745817eCopy full SHA for 745817e
arrowhead/servicedirectory/directory.py
@@ -198,7 +198,9 @@ def service_list(self, **search):
198
self.log.debug('list %r', search)
199
now = unix_now()
200
# Find all services with deadline >= now
201
- services = self._db.filter(self.Service, {'deadline': {'$gte': now}})
+ criteria = {key: value for key, value in search.items()}
202
+ criteria['deadline'] = {'$gte': now}
203
+ services = self._db.filter(self.Service, criteria)
204
res = [dict(service.attributes.copy()) for service in services]
205
return res
206
0 commit comments