Fix sorting of time entries.

This commit is contained in:
Darko Poljak 2016-05-24 08:49:02 +02:00
parent ebcb7aa7ba
commit f1fea6add6

View file

@ -88,14 +88,8 @@ class Report(object):
@staticmethod
def print_report_time_entries(report_data, output_format, summary):
''' Print time entries from report_data report using output_format.
If summary is True then the order of times (keys) is
sorted.
'''
if summary:
keys = sorted(report_data.keys())
else:
keys = report_data.keys()
for time in keys:
entries = report_data[time]
for entry in entries: