changeset 409:ac4dead31672

Improves editing of length for saved entries. * Formats the edit string better for values lieke `2:05`.
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 24 Apr 2017 14:24:05 +0200
parents 8ba4576e5381
children 0650c47e7a1c
files getan/states.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Fri Mar 17 08:18:31 2017 +0100
+++ b/getan/states.py	Mon Apr 24 14:24:05 2017 +0200
@@ -857,7 +857,7 @@
 
         if hours > 0:
             self.footer.set_edit_text(
-                "{:d}:{:d}".format(hours, int(total_minutes % 60)))
+                "{:d}:{:02d}".format(hours, int(total_minutes % 60)))
         else:
             self.footer.set_edit_text("{:d}".format(total_minutes))
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)