[hamster-applet] sometimes you just cant remember that one thing you try to remember
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] sometimes you just cant remember that one thing you try to remember
- Date: Fri, 15 Jan 2010 19:20:11 +0000 (UTC)
commit 94a5f34ad643acda205b48b02ea267d441e9b2c7
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Jan 15 01:26:14 2010 +0000
sometimes you just cant remember that one thing you try to remember
hamster/edit_activity.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/hamster/edit_activity.py b/hamster/edit_activity.py
index bd361c7..9cf7cec 100644
--- a/hamster/edit_activity.py
+++ b/hamster/edit_activity.py
@@ -71,8 +71,8 @@ class CustomFactController:
fact_date = fact_date or dt.date.today()
last_activity = runtime.storage.get_facts(fact_date)
- if last_activity and last_activity[len(last_activity)-1]["end_time"]:
- start_date = last_activity[len(last_activity)-1]["end_time"]
+ if last_activity and last_activity[-1]["end_time"]:
+ start_date = last_activity[-1]["end_time"]
if fact_date != dt.date.today():
end_date = start_date + dt.timedelta(minutes=30)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]