mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 13:08:16 -06:00
Add report.result back as it is used by report.html
This commit is contained in:
parent
504d58c217
commit
18b3d8a3f5
@ -1059,6 +1059,10 @@ class ReportView(ContentTypePermissionRequiredMixin, View):
|
||||
report = module.reports[name]()
|
||||
jobs = module.get_jobs(report.class_name)
|
||||
|
||||
report.result = jobs.filter(
|
||||
status__in=JobStatusChoices.TERMINAL_STATE_CHOICES
|
||||
).first()
|
||||
|
||||
return render(request, 'extras/report.html', {
|
||||
'job_count': jobs.count(),
|
||||
'module': module,
|
||||
|
Loading…
Reference in New Issue
Block a user