def print_report(): print() report = Report.latest() for report_type in report.keys(): if report_type == "report_date": continue print("[%s]" % report_type) eligible = report[report_type]["eligible"] for key in report[report_type].keys(): if key == "eligible": continue print("%s: %i" % (key, percent(report[report_type][key], eligible))) print()
def print_report(): print() report = Report.latest() for report_type in report.keys(): # The a11y report has a very different use than the others if report_type == "report_date" or report_type == "a11y": continue print("[%s]" % report_type) eligible = report[report_type]["eligible"] for key in report[report_type].keys(): if key == "eligible": continue print("%s: %i" % (key, percent(report[report_type][key], eligible))) print()