changeset 407:ee98d0b45967

Fixes ability to change length of saved entries. .. in the subcase that the saved length was less than a full hour.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 28 Feb 2017 12:14:56 +0100
parents 84f9b1eeb8b6
children 8ba4576e5381
files getan/states.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Fri Feb 10 15:30:56 2017 +0100
+++ b/getan/states.py	Tue Feb 28 12:14:56 2017 +0100
@@ -859,7 +859,7 @@
             self.footer.set_edit_text(
                 "{:d}:{:d}".format(hours, int(total_minutes % 60)))
         else:
-            self.footer.set_edit_text(int(minutes))
+            self.footer.set_edit_text("{:d}".format(total_minutes))
 
         self.footer.set_edit_pos(len(self.footer.edit_text))
         self.entry = entry
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)