[hamster-applet] overdid with setting end times. fixes bug 586172
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Subject: [hamster-applet] overdid with setting end times. fixes bug 586172
- Date: Wed, 17 Jun 2009 18:47:30 -0400 (EDT)
commit 75db3bcb2b295ca180a54ef8b9ee8953351a80d7
Author: Toms Bauģis <toms baugis gmail com>
Date: Wed Jun 17 23:47:21 2009 +0100
overdid with setting end times. fixes bug 586172
hamster/db.py | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/hamster/db.py b/hamster/db.py
index ddac00e..a41768b 100644
--- a/hamster/db.py
+++ b/hamster/db.py
@@ -290,11 +290,6 @@ class Storage(storage.Storage):
else: #otherwise we have found a task that is after us
end_time = fact["start_time"]
- # in case of missing end_time, treat is as ongoing task, but only
- # if that's not too far in past
- if not end_time and (dt.datetime.now() - start_time) <= dt.timedelta(days=1):
- end_time = dt.datetime.now()
-
return end_time
def __solve_overlaps(self, start_time, end_time):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]