Commit ec655291 authored by Jérome Perrin's avatar Jérome Perrin

Inventory API(interpolation): fix operator/logical_operator

parent 60e8992e
......@@ -676,12 +676,12 @@ class SimulationTool(BaseTool):
ComplexQuery(
Query(mirror_date=from_date, range='min'),
Query(date=to_date, range='max'),
operator="AND"),
logical_operator="AND"),
ComplexQuery(
Query(date=from_date, range='min'),
Query(mirror_date=to_date, range='max'),
operator="AND"),
operator="OR"
logical_operator="AND"),
logical_operator="OR"
)
else:
column_value_dict['date'] = ComplexQuery(
......@@ -690,12 +690,12 @@ class SimulationTool(BaseTool):
ComplexQuery(
Query(mirror_date=from_date, range='min'),
Query(date=at_date, range='ngt'),
operator="AND"),
logical_operator="AND"),
ComplexQuery(
Query(date=from_date, range='min'),
Query(mirror_date=at_date, range='ngt'),
operator="AND"),
operator="OR"
logical_operator="AND"),
logical_operator="OR"
)
else:
column_value_dict['date'] = {'query': [to_date], 'range': 'ngt'}
......
Markdown is supported
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