[Getan-commits] [PATCH 2 of 2] Set correct next state if to be subtracted seconds are greater then the actual

Wald Commits scm-commit at wald.intevation.org
Tue Jul 9 12:18:38 CEST 2013


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1372067887 -7200
# Node ID fdd086acdf9b7534899dfbf7e27e27811711efc4
# Parent  700fc5416c3201301462f90d6e77d95b1bfbbf6a
Set correct next state if to be subtracted seconds are greater then the actual
measured seconds

diff -r 700fc5416c32 -r fdd086acdf9b getan/states.py
--- a/getan/states.py	Mon Jun 24 11:57:22 2013 +0200
+++ b/getan/states.py	Mon Jun 24 11:58:07 2013 +0200
@@ -395,7 +395,8 @@
         sec = minutes * 60
         if sec > self.state.sec:
             self.view.show_total_time()
-            return self.state
+            self.set_next_state(self.state)
+            return False
         project = self.project
         project.start += timedelta(minutes=minutes)
         self.state.sec -= sec


More information about the Getan-commits mailing list