Skip to content

Commit 66fbb8f

Browse files
committed
black
1 parent 5574ff4 commit 66fbb8f

File tree

1 file changed

+4
-1
lines changed
  • src/redturtle/volto/restapi/services/querystringsearch

1 file changed

+4
-1
lines changed

src/redturtle/volto/restapi/services/querystringsearch/get.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ def is_event_search(self, query):
179179
indexes_check = False
180180
if "start" in indexes:
181181
# TODO: do we have other cases to handle?
182-
if indexes["start"].get("o") == "plone.app.querystring.operation.date.lessThan": # noqa
182+
custom_ops = [
183+
"plone.app.querystring.operation.date.lessThan",
184+
]
185+
if indexes["start"].get("o") in custom_ops:
183186
# this is a custom search, not an "event" search
184187
indexes_check = False
185188
else:

0 commit comments

Comments
 (0)