Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-08-14 01:05:12 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-08-14 01:05:12 (GMT)
commit94791e3854b4c201b69302448c6e48307e4ed733 (patch)
tree2cce69afceed7fb208d763d8606cb826c7bcd913
parenta33f52d09f5eb8c8224507627ed2cd907d8ae4e9 (diff)
"keep" value might be int in DS api call
-rw-r--r--sugar_network/local/datastore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/local/datastore.py b/sugar_network/local/datastore.py
index 1bd693d..a1602e1 100644
--- a/sugar_network/local/datastore.py
+++ b/sugar_network/local/datastore.py
@@ -30,7 +30,7 @@ MAP_PROPS = {
'activity_id': ('activity_id', lambda x: x, str),
'title': ('title', lambda x: x, str),
'description': ('description', lambda x: x, str),
- 'keep': ('keep', lambda x: str(int(x)), lambda x: x and x != '0'),
+ 'keep': ('keep', lambda x: str(int(x)), lambda x: x and bool(int(x))),
'mime_type': ('mime_type', lambda x: x, str),
'tags': ('tags', lambda x: ' '.join(x), lambda x: str(x).split()),
'filesize': ('filesize', lambda x: str(x or 0), lambda x: int(x or 0)),