[hamster-applet] split and no-hands trophies
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] split and no-hands trophies
- Date: Sun, 22 Aug 2010 11:56:14 +0000 (UTC)
commit 9d15d4bc720a17c4701284890813d075b3172270
Author: Toms Bauģis <toms baugis gmail com>
Date: Sun Aug 22 12:55:51 2010 +0100
split and no-hands trophies
src/hamster/db.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/db.py b/src/hamster/db.py
index ffebcee..5412b58 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -479,6 +479,8 @@ class Storage(storage.Storage):
WHERE fact_id = ?"""
self.execute(tag_update, (new_fact_id, fact["id"])) #clone tags
+ trophies.unlock("split")
+
# overlap start
elif start_time < fact["start_time"] < end_time:
logging.info("Overlapping start of %s" % fact["name"])
@@ -526,6 +528,8 @@ class Storage(storage.Storage):
if not category_id:
category_id = self.__add_category(fact.category)
+ trophies.unlock("no_hands")
+
# try to find activity, resurrect if not temporary
activity_id = self.__get_activity_by_name(fact.activity,
category_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]