Commit 6ee4fd49 authored by Romain Courteaud's avatar Romain Courteaud

slapos_rss_style: portal_catalog is enough

getMovementHistoryList may return the same event twice.
parent bcdb3290
......@@ -39,11 +39,9 @@ follow_up_simulation_state = [
]
data_list = []
for brain in portal.portal_simulation.getMovementHistoryList(
security_query=portal.portal_catalog.getSecurityQuery(),
for brain in portal.portal_catalog(
# Limit only to listable portal types
portal_type=['Web Message', 'Mail Message'],
only_accountable=False,
simulation_state=('started', 'stopped', 'delivered'),
limit=list_lines,
sort_on=(('stock.date', 'desc'),
......
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