[hamster-applet] another easy to implement one



commit 8875c2e45d9f1a74d93b7ecb943b6edcdaa8508a
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Aug 17 23:33:33 2010 +0100

    another easy to implement one

 src/hamster/trophies.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/trophies.py b/src/hamster/trophies.py
index 8230937..d408eef 100644
--- a/src/hamster/trophies.py
+++ b/src/hamster/trophies.py
@@ -59,6 +59,11 @@ class Checker(object):
         fact.start_time = start_time or fact.start_time
         fact.end_time = end_time or fact.end_time
 
+        # alpha bravo charlie â?? used delta times to enter at least 50 activities
+        if fact.start_time and activity_name.startswith("-"):
+            counter = self.trophies.increment_counter("hamster-applet", "alpha_bravo_charlie")
+            if counter == 50:
+                self.trophies.unlock_achievement("hamster-applet", "alpha_bravo_charlie")
 
 
         # cryptic - hidden - used word shorter than 4 letters for the activity name



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