[hamster-applet] bracket leftovers
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] bracket leftovers
- Date: Sat, 28 Aug 2010 10:47:41 +0000 (UTC)
commit 487c4fe866293e1e113a19c3cf3abf36a0446eb3
Author: Toms Bauģis <toms baugis gmail com>
Date: Sat Aug 28 11:46:19 2010 +0100
bracket leftovers
src/hamster/utils/trophies.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster/utils/trophies.py b/src/hamster/utils/trophies.py
index 6b1fd9c..2384cd9 100644
--- a/src/hamster/utils/trophies.py
+++ b/src/hamster/utils/trophies.py
@@ -51,7 +51,7 @@ def check_ongoing(todays_facts):
if not storage or not todays_facts: return
last_activity = None
- if todays_facts[-1]['end_time'] is None:
+ if todays_facts[-1].end_time is None:
last_activity = todays_facts[-1]
last_activity.delta = dt.datetime.now() - last_activity.start_time
@@ -66,7 +66,7 @@ def check_ongoing(todays_facts):
unlock("welcome")
# in_the_zone - spend 6 hours non-stop on an activity
- if last_activity.delta > dt.timedelta(hours = 6):
+ if last_activity.delta >= dt.timedelta(hours = 6):
unlock("in_the_zone")
# insomnia - meet the new day while tracking an activity
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]