Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
7b29cde2
Verified
Commit
7b29cde2
authored
Nov 01, 2021
by
Andrey Vertiprahov
Browse files
Fix ReportLastChanges.
parent
ba7c2ca0
Pipeline
#34021
passed with stages
in 18 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
services/web/apps/cm/reportlatestchanges/views.py
View file @
7b29cde2
...
...
@@ -97,9 +97,15 @@ class ReportLatestChangesApplication(SimpleReport):
)
}
for
d
in
data
:
name
,
profile
=
n_map
.
get
(
d
[
"_id"
],
(
"-"
,
None
))
name
,
address
,
profile
=
n_map
.
get
(
d
[
"_id"
],
(
"-"
,
"-"
,
None
))
result
+=
[
(
d
[
"_id"
],
name
,
Profile
.
get_by_id
(
profile
)
if
profile
else
"-"
,
d
[
"last_ts"
])
(
d
[
"_id"
],
name
,
address
,
Profile
.
get_by_id
(
profile
)
if
profile
else
"-"
,
d
[
"last_ts"
],
)
]
return
self
.
from_dataset
(
title
=
"%s: %s in %d days"
%
(
self
.
title
,
repo
,
days
),
...
...
Write
Preview
Supports
Markdown
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