Started adding a view for individual reports

This commit is contained in:
Jeremy Stretch
2017-09-27 17:39:22 -04:00
parent f4c87b3739
commit 2fbb39bf6f
6 changed files with 68 additions and 19 deletions

View File

@@ -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()