[hamster-applet] knits
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] knits
- Date: Mon, 23 Aug 2010 14:11:33 +0000 (UTC)
commit fa43d3ac9504f0c8105790bb33393ec3c21c565b
Author: Toms Bauģis <toms baugis gmail com>
Date: Mon Aug 23 15:11:18 2010 +0100
knits
src/hamster/utils/trophies.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/hamster/utils/trophies.py b/src/hamster/utils/trophies.py
index a7587a9..6b1fd9c 100644
--- a/src/hamster/utils/trophies.py
+++ b/src/hamster/utils/trophies.py
@@ -182,15 +182,15 @@ class Checker(object):
# TODO - after the trophies have been unlocked there is not much point in going on
# patrys complains about who's gonna garbage collect. should think
# about this
- if not storage.check_achievement("hamster-applet", "ultra_focused"):
+ if not check("ultra_focused"):
activity_count = increment("hamster-applet", "focused_%s %s" % (fact.activity, fact.category or ""))
# focused â?? 100 facts with single activity
if activity_count == 100:
- unlock("hamster-applet", "focused")
+ unlock("focused")
# ultra focused â?? 500 facts with single activity
if activity_count == 500:
- unlock("hamster-applet", "ultra_focused")
+ unlock("ultra_focused")
# elite - hidden - start an activity at 13:37
if dt.datetime.now().hour == 13 and dt.datetime.now().minute == 37:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]