[hamster-applet] dict remains. patch by Andrew Montalenti
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] dict remains. patch by Andrew Montalenti
- Date: Fri, 29 Oct 2010 16:50:32 +0000 (UTC)
commit fbba48542c2d5389a53ce1afe90f882e49d92153
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Oct 29 17:50:17 2010 +0100
dict remains. patch by Andrew Montalenti
src/hamster-cli | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/hamster-cli b/src/hamster-cli
index 8fbf424..dca16ae 100755
--- a/src/hamster-cli
+++ b/src/hamster-cli
@@ -196,7 +196,7 @@ def fact_dict(fact_data, with_date):
fmt = '%H:%M'
fact['start'] = fact_data.start_time.strftime(fmt)
- if fact_data['end_time']:
+ if fact_data.end_time:
fact['end'] = fact_data.end_time.strftime(fmt)
else:
end_date = dt.datetime.now()
@@ -204,9 +204,9 @@ def fact_dict(fact_data, with_date):
fact['duration'] = stuff.format_duration(fact_data.delta)
- fact['activity'] = fact_data.name
+ fact['activity'] = fact_data.activity
fact['category'] = fact_data.category
- if fact_data['tags']:
+ if fact_data.tags:
fact['tags'] = ' '.join('#%s' % tag for tag in fact_data.tags)
else:
fact['tags'] = ''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]