示例#1
0
文件: votes.py 项目: h4ck3rm1k3/billy
def vote_report(abbr):
    report = scan_votes(abbr)
    combined_report = combine_reports(report['sessions'], _vote_report_dict())
    for session in report['sessions'].itervalues():
        calculate_percentages(session)
    calculate_percentages(combined_report)
    report.update(combined_report)
    return report
示例#2
0
文件: votes.py 项目: showerst/billy
def vote_report(abbr):
    report = scan_votes(abbr)
    combined_report = combine_reports(report['sessions'], _vote_report_dict())
    for session in report['sessions'].itervalues():
        calculate_percentages(session)
    calculate_percentages(combined_report)
    report.update(combined_report)
    return report
示例#3
0
文件: bills.py 项目: JT5D/billy
def bill_report(abbr):
    report = scan_bills(abbr)
    combined_report = combine_reports(report["sessions"], _bill_report_dict())
    for session in report["sessions"].itervalues():
        calculate_percentages(session)
    calculate_percentages(combined_report)
    report.update(combined_report)
    return report