[hamster-applet] knit
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] knit
- Date: Tue, 13 Apr 2010 13:49:03 +0000 (UTC)
commit bfab2a6899cf79d5bc30c63a6d8e9ef338b312af
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Apr 13 14:48:22 2010 +0100
knit
src/hamster/client.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/hamster/client.py b/src/hamster/client.py
index fc91b5b..49292f9 100644
--- a/src/hamster/client.py
+++ b/src/hamster/client.py
@@ -48,9 +48,8 @@ def from_dbus_fact(fact):
else:
fact['end_time'] = None
- if not fact['tags']:
- fact['tags'] = []
-
+ fact['tags'] = fact['tags'] or [] # effectively converting 0 to []
+
if 'date' in fact:
fact['date'] = dt.datetime.utcfromtimestamp(fact['date']).date()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]