fix flake failures
@@ -69,7 +69,8 @@ class FiltersController(RestController):
for name, field in six.iteritems(SUPPORTED_FILTERS):
if name not in IGNORE_FILTERS and (not types or name in types):
- filters[name] = ActionExecution.distinct(field=field, **{field.replace('.','__'): {"$ne": None}})
+ query = {field.replace('.', '__'): {"$ne": None}}
+ filters[name] = ActionExecution.distinct(field=field, **query)
return filters
