[hamster-applet] fix ongoing task switching logic



commit 508acb2d212a352fe3688a4898998594e6300108
Author: Toms BauÄis <toms baugis gmail com>
Date:   Sat Feb 4 00:39:09 2012 +0200

    fix ongoing task switching logic

 src/hamster/db.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/db.py b/src/hamster/db.py
index 5ee7b05..1bbfa89 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -552,7 +552,7 @@ class Storage(storage.Storage):
             if facts and facts[-1]["end_time"] == None:
                 previous = facts[-1]
 
-            if previous and previous['start_time'] < start_time:
+            if previous and previous['start_time'] <= start_time:
                 # check if maybe that is the same one, in that case no need to restart
                 if previous["activity_id"] == activity_id \
                    and set(previous["tags"]) == set([tag["name"] for tag in tags]) \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]