|
|
@@ -59,14 +59,14 @@ def get_reports():
|
|
|
report_order = getattr(module, "report_order", ())
|
|
|
ordered_reports = [cls() for cls in report_order if is_report(cls)]
|
|
|
unordered_reports = [cls() for _, cls in inspect.getmembers(module, is_report) if cls not in report_order]
|
|
|
-
|
|
|
+
|
|
|
module_reports = {}
|
|
|
|
|
|
for cls in [*ordered_reports, *unordered_reports]:
|
|
|
# For reports in submodules use the full import path w/o the root module as the name
|
|
|
report_name = cls.full_name.split(".", maxsplit=1)[1]
|
|
|
module_reports[report_name] = cls
|
|
|
-
|
|
|
+
|
|
|
if module_reports:
|
|
|
module_list[module_name] = module_reports
|
|
|
|