diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-03-18 16:08:44 -0300 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-03-18 16:10:01 -0300 |
commit | e80cd4748eb8d9b1b292da847172a9613f18face (patch) | |
tree | 74524757be502e3c544b8a0ee8d0da25702b9674 | |
parent | e505894007c9adabc673ac6b1a09f6216eda475c (diff) |
Changed map to list comprehension
-rw-r--r-- | service/pixelated/resources/sync_info_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/sync_info_resource.py b/service/pixelated/resources/sync_info_resource.py index 5aa94218..791c5add 100644 --- a/service/pixelated/resources/sync_info_resource.py +++ b/service/pixelated/resources/sync_info_resource.py @@ -32,7 +32,7 @@ class SyncInfoResource(Resource): return self.current / float(self.total) def set_sync_info(self, soledad_sync_status): - self.current, self.total = map(int, soledad_sync_status.content.split('/')) + self.current, self.total = [int(x) for x in soledad_sync_status.content.split('/')] def render_GET(self, request): _sync_info = { |