[Getan-commits] [PATCH 2 of 3] getan-report.py: improves -t output format

Wald Commits scm-commit at wald.intevation.org
Fri Feb 3 17:36:00 CET 2017


# HG changeset patch
# User Bernhard Reiter <bernhard at intevation.de>
# Date 1486130252 -3600
# Node ID f656d9370085c7722c9d726f2e989ff60b3c9229
# Parent  9d4a8f7da935d458c0d2bb4209ccca48cb8bc053
getan-report.py: improves -t output format.

diff -r 9d4a8f7da935 -r f656d9370085 scripts/getan-report.py
--- a/scripts/getan-report.py	Fri Feb 03 14:32:55 2017 +0100
+++ b/scripts/getan-report.py	Fri Feb 03 14:57:32 2017 +0100
@@ -138,7 +138,8 @@
 
         if start_time >= report_range_start and start_time < report_range_end:
             if args.t:
-                print("{2}: {3} {4}\n\t\t\t{0} {1}".
+                print("{0:%Y-%m-%d %H:%M}-\n"
+                      "{1:%Y-%m-%d %H:%M} {4}  {2}: {3}\n".
                       format(start_time, stop_time, desc, e[4],
                              hhhmm_from_timedelta(length)))
             else:


More information about the Getan-commits mailing list