1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Allow reports to be nested in submodules

This commit is contained in:
kkthxbye-code
2022-09-14 19:57:37 +02:00
parent f489ffa043
commit 356ff457be
5 changed files with 27 additions and 19 deletions

View File

@@ -21,8 +21,8 @@ class Command(BaseCommand):
reports = get_reports()
# Run reports
for module_name, report_list in reports:
for report in report_list:
for module_name, report_list in reports.items():
for report in report_list.values():
if module_name in options['reports'] or report.full_name in options['reports']:
# Run the report and create a new JobResult