Commit 5022a631 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed keyerror for non domain quantities.

parent a427ca3f
Pipeline #47278 passed with stages
in 16 minutes and 36 seconds
......@@ -243,10 +243,12 @@ def _construct_search(q: Q = None, time_range: Tuple[datetime, datetime] = None,
values = [value]
for item in values:
if datamodel.Domain.instance.quantities[key].multi:
quantity = datamodel.Domain.instance.quantities.get(key)
if quantity is not None and quantity.multi:
items = item.split(',')
else:
items = [item]
for item in items:
search = search.query(Q(query_type, **{field: item}))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment