Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
c6be3640
Commit
c6be3640
authored
Oct 08, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_rss_style: portal_catalog is enough
getMovementHistoryList may return the same event twice.
parent
2a3dd32d
Pipeline
#37362
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/WebSection_getEventList.py
.../portal_skins/slapos_rss_style/WebSection_getEventList.py
+1
-3
No files found.
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/WebSection_getEventList.py
View file @
c6be3640
...
@@ -39,11 +39,9 @@ follow_up_simulation_state = [
...
@@ -39,11 +39,9 @@ follow_up_simulation_state = [
]
]
data_list
=
[]
data_list
=
[]
for
brain
in
portal
.
portal_simulation
.
getMovementHistoryList
(
for
brain
in
portal
.
portal_catalog
(
security_query
=
portal
.
portal_catalog
.
getSecurityQuery
(),
# Limit only to listable portal types
# Limit only to listable portal types
portal_type
=
[
'Web Message'
,
'Mail Message'
],
portal_type
=
[
'Web Message'
,
'Mail Message'
],
only_accountable
=
False
,
simulation_state
=
(
'started'
,
'stopped'
,
'delivered'
),
simulation_state
=
(
'started'
,
'stopped'
,
'delivered'
),
limit
=
list_lines
,
limit
=
list_lines
,
sort_on
=
((
'stock.date'
,
'desc'
),
sort_on
=
((
'stock.date'
,
'desc'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment