[hamster-applet] check for module not for storage, as the latter may come and go



commit b6eb9efc4ac83b8ea8fa98b8eb4152af4ea00692
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Aug 17 08:38:07 2010 +0100

    check for module not for storage, as the latter may come and go

 src/hamster/trophies.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/trophies.py b/src/hamster/trophies.py
index 5de8466..8230937 100644
--- a/src/hamster/trophies.py
+++ b/src/hamster/trophies.py
@@ -41,7 +41,7 @@ class Checker(object):
 
     def check_fact_based(self, activity_name, tags, start_time, end_time, category_name, description):
         # checks fact based trophies
-        if not self.trophies: return
+        if not trophies_client: return
 
         # explicit over implicit
         fact = stuff.parse_activity_input(activity_name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]