コード例 #1
0
ファイル: processing.py プロジェクト: uncompiled/pulse
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
ファイル: processing.py プロジェクト: g-ocloud/pulse
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
ファイル: processing.py プロジェクト: italia/security-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()