Bugfix: report prints multiple rows.

This commit is contained in:
Darko Poljak 2016-04-11 17:08:54 +02:00
parent 2cf503abac
commit f72db34875

View file

@ -113,16 +113,16 @@ class Report(object):
summary_report = {} summary_report = {}
for project in reports: for project in reports:
report, report_data = reports[project] report, report_data = reports[project]
for time in report_data: if summary:
if summary: for time in report_data:
if not time in summary_report: if not time in summary_report:
summary_report[time] = report_data[time] summary_report[time] = report_data[time]
else: else:
summary_report[time].extend(report_data[time]) summary_report[time].extend(report_data[time])
else: else:
report.header() report.header()
Report.print_report_time_entries(report_data, Report.print_report_time_entries(report_data,
output_format, summary) output_format, summary)
if summary: if summary:
Report.print_report_time_entries(summary_report, Report.print_report_time_entries(summary_report,
output_format, summary) output_format, summary)