From f72db34875d1f0959d65c775355917d4380980a6 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Mon, 11 Apr 2016 17:08:54 +0200 Subject: [PATCH] Bugfix: report prints multiple rows. --- lib/ctt/report.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ctt/report.py b/lib/ctt/report.py index 6418cb0..0c1608e 100755 --- a/lib/ctt/report.py +++ b/lib/ctt/report.py @@ -113,16 +113,16 @@ class Report(object): summary_report = {} for project in reports: 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: summary_report[time] = report_data[time] else: summary_report[time].extend(report_data[time]) - else: - report.header() - Report.print_report_time_entries(report_data, - output_format, summary) + else: + report.header() + Report.print_report_time_entries(report_data, + output_format, summary) if summary: Report.print_report_time_entries(summary_report, output_format, summary)