[hamster-applet] don't look on tags when considering removal of an activity shorter than 60 seconds
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't look on tags when considering removal of an activity shorter than 60 seconds
- Date: Sun, 17 Jan 2010 17:55:33 +0000 (UTC)
commit 6c3263c4e7db7b22623a034b20f4ce0b636b8dd0
Author: Toms Bauģis <toms baugis gmail com>
Date: Sun Jan 17 17:52:18 2010 +0000
don't look on tags when considering removal of an activity shorter than 60 seconds
hamster/db.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/hamster/db.py b/hamster/db.py
index 2803538..6fb5f19 100644
--- a/hamster/db.py
+++ b/hamster/db.py
@@ -517,9 +517,9 @@ class Storage(storage.Storage):
and previous["description"] == (description or ""):
return previous
- # otherwise, if not tags nor description is added (extra data
+ # otherwise, if no description is added
# see if maybe it is too short to qualify as an activity
- if not previous["tags"] and not previous["description"] \
+ if not previous["description"] \
and 60 >= (start_time - previous['start_time']).seconds >= 0:
self.__remove_fact(previous['id'])
start_time = previous['start_time']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]