diff options
Diffstat (limited to 'service/pixelated/controllers/sync_info_controller.py')
-rw-r--r-- | service/pixelated/controllers/sync_info_controller.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/service/pixelated/controllers/sync_info_controller.py b/service/pixelated/controllers/sync_info_controller.py index 5adfcd48..3a8e1a16 100644 --- a/service/pixelated/controllers/sync_info_controller.py +++ b/service/pixelated/controllers/sync_info_controller.py @@ -17,7 +17,6 @@ from pixelated.controllers import respond_json class SyncInfoController: - def __init__(self): self.current = 0 self.total = 0 @@ -25,7 +24,7 @@ class SyncInfoController: def _get_progress(self): if self.total == 0: return 0 - return self.current/float(self.total) + 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('/')) @@ -39,4 +38,4 @@ class SyncInfoController: 'progress': self._get_progress() } } - return respond_json(_sync_info)
\ No newline at end of file + return respond_json(_sync_info) |