Commit 2185edc6 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'backport-20.4-1704' into 'release-20.4'

release-20.4:Backport!5848 Fix ReportLastChanges.

See merge request !5849
parents ba7c2ca0 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),
......
Supports Markdown
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