comparison scripts/getan-report.py @ 403:f656d9370085

getan-report.py: improves -t output format.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 03 Feb 2017 14:57:32 +0100
parents 9d4a8f7da935
children c272982799b5
comparison
equal deleted inserted replaced
402:9d4a8f7da935 403:f656d9370085
136 136
137 desc = tasks[e[1]] 137 desc = tasks[e[1]]
138 138
139 if start_time >= report_range_start and start_time < report_range_end: 139 if start_time >= report_range_start and start_time < report_range_end:
140 if args.t: 140 if args.t:
141 print("{2}: {3} {4}\n\t\t\t{0} {1}". 141 print("{0:%Y-%m-%d %H:%M}-\n"
142 "{1:%Y-%m-%d %H:%M} {4} {2}: {3}\n".
142 format(start_time, stop_time, desc, e[4], 143 format(start_time, stop_time, desc, e[4],
143 hhhmm_from_timedelta(length))) 144 hhhmm_from_timedelta(length)))
144 else: 145 else:
145 print("{0} {2}: {3} {4}". 146 print("{0} {2}: {3} {4}".
146 format(start_time, stop_time, desc, e[4], 147 format(start_time, stop_time, desc, e[4],
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)