[hamster-applet] don't override the original date input so we can pass it on
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't override the original date input so we can pass it on
- Date: Fri, 20 Aug 2010 09:35:54 +0000 (UTC)
commit 15bfffd653179321e5fdb5eb724bd825163c06d5
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Aug 20 10:32:27 2010 +0100
don't override the original date input so we can pass it on
src/hamster/client.py | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/hamster/client.py b/src/hamster/client.py
index 9a027f1..cbb42c5 100644
--- a/src/hamster/client.py
+++ b/src/hamster/client.py
@@ -175,13 +175,13 @@ class Storage(gobject.GObject):
"""
- start_time = start_time or 0
- if start_time:
- start_time = timegm(start_time.timetuple())
+ start_timestamp = start_time or 0
+ if start_timestamp:
+ start_timestamp = timegm(start_time.timetuple())
- end_time = end_time or 0
- if end_time:
- end_time = timegm(end_time.timetuple())
+ end_timestamp = end_time or 0
+ if end_timestamp:
+ end_timestamp = timegm(end_time.timetuple())
if isinstance(tags, list): #make sure we send what storage expects
tags = ", ".join(tags)
@@ -190,7 +190,7 @@ class Storage(gobject.GObject):
category_name = category_name or ''
description = description or ''
- new_id = self.conn.AddFact(activity_name, tags, start_time, end_time, category_name, description, temporary)
+ new_id = self.conn.AddFact(activity_name, tags, start_timestamp, end_timestamp, category_name, description, temporary)
# TODO - the parsing should happen just once and preferably here
# we should feed (serialized_activity, start_time, end_time) into AddFact and others
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]