Fix sorting of time entries.
This commit is contained in:
parent
ebcb7aa7ba
commit
f1fea6add6
1 changed files with 1 additions and 7 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue