Commit 1ed2f20f authored by Alain Takoudjou's avatar Alain Takoudjou

Merge remote-tracking branch 'origin/master'

parents 9083228c 371adef0
Pipeline #1678 skipped
......@@ -17,8 +17,12 @@ query = ComplexQuery(
logical_operator='or')
# Use event modification date instead.
kw['sort_on'] = [('modification_date', 'DESC'),]
kw['sort_on'] = (("catalog.simulation_state='suspended'", 'DESC'),
("catalog.simulation_state='validated'", 'DESC'),
("catalog.simulation_state='confirmed'", 'DESC'),
('modification_date', 'DESC'),)
kw['simulation_state'] = "NOT cancelled"
kw['limit'] = 30
result_list = []
for document in portal.portal_catalog(query=query, **kw):
if document.getPortalType() == "Upgrade Decision Line":
......
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