diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-21 15:04:17 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-21 15:04:17 +0200 |
commit | 8a6806d9b1ae9902b0ecb71c703dcf65d4609526 (patch) | |
tree | 184ad4aab7691711135b67d9a644abceb3544f8d | |
parent | 4782ec70a4f70b7735bb9cb3ef0207448229c02a (diff) |
damn you pep8!
-rw-r--r-- | service/pixelated/controllers/__init__.py | 2 | ||||
-rw-r--r-- | service/pixelated/controllers/sync_info_controller.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/service/pixelated/controllers/__init__.py b/service/pixelated/controllers/__init__.py index 2976b8cb..c454ba55 100644 --- a/service/pixelated/controllers/__init__.py +++ b/service/pixelated/controllers/__init__.py @@ -29,4 +29,4 @@ from home_controller import HomeController from mails_controller import MailsController from tags_controller import TagsController from features_controller import FeaturesController -from sync_info_controller import SyncInfoController
\ No newline at end of file +from sync_info_controller import SyncInfoController 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) |