예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
파일: processing.py 프로젝트: robbi5/pulse
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()
예제 #4
0
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()