[Getan-commits] [PATCH] Improves editing of length for saved entries
Wald Commits
scm-commit at wald.intevation.org
Mon Apr 24 14:24:15 CEST 2017
# HG changeset patch
# User Bernhard Reiter <bernhard at intevation.de>
# Date 1493036645 -7200
# Node ID ac4dead3167205e2035bc60a568ff7482437f943
# Parent 8ba4576e5381e042fb1f7dd9b9572a71b01767c7
Improves editing of length for saved entries.
* Formats the edit string better for values lieke `2:05`.
diff -r 8ba4576e5381 -r ac4dead31672 getan/states.py
--- 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))
More information about the Getan-commits
mailing list