[hamster-applet/gnome-2-32] the description check was failing and so if trying to start a new activity that is same as the previ
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet/gnome-2-32] the description check was failing and so if trying to start a new activity that is same as the previ
- Date: Thu, 19 Aug 2010 11:32:12 +0000 (UTC)
commit 3c01a8b50995936003e584139766c69064bee5ff
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Aug 19 12:31:47 2010 +0100
the description check was failing and so if trying to start a new activity that is same as the previous ongoing one, it would add a new record instead of doing nothing
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 0807997..b2668c0 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -565,7 +565,7 @@ class Storage(storage.Storage):
# check if maybe that is the same one, in that case no need to restart
if previous["activity_id"] == activity_id \
and previous["tags"] == sorted([tag["name"] for tag in tags]) \
- and previous["description"] == (description or ""):
+ and (previous["description"] or "") == (description or ""):
return previous["id"]
# otherwise, if no description is added
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]