Commit f1fea6ad authored by Darko Poljak's avatar Darko Poljak

Fix sorting of time entries.

parent ebcb7aa7
...@@ -88,14 +88,8 @@ class Report(object): ...@@ -88,14 +88,8 @@ class Report(object):
@staticmethod @staticmethod
def print_report_time_entries(report_data, output_format, summary): def print_report_time_entries(report_data, output_format, summary):
''' Print time entries from report_data report using output_format. ''' 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())
keys = sorted(report_data.keys())
else:
keys = report_data.keys()
for time in keys: for time in keys:
entries = report_data[time] entries = report_data[time]
for entry in entries: for entry in entries:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment