def main(args, app): for report in Report.FromConfig(app.config): if args.report == report.name: report.remove(app.config) app.config.save() print('removed', report.format_url()) break
def get_report_map(conf): reports = {} for report in Report.FromConfig(conf): reports[report.name] = report return reports
def get_devices(conf): return Report.FromConfig(conf)
def get_report_names(conf): return [report.name for report in Report.FromConfig(conf)]