mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-06 15:26:24 -06:00
Started adding a view for individual reports
This commit is contained in:
@@ -24,6 +24,8 @@ def get_report(module_name, report_name):
|
||||
"""
|
||||
module = importlib.import_module('reports.{}'.format(module_name))
|
||||
report = getattr(module, report_name, None)
|
||||
if report is None:
|
||||
return None
|
||||
return report()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user