diff options
Diffstat (limited to 'service/pixelated/config')
-rw-r--r-- | service/pixelated/config/app_factory.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 652ef5b1..497ab205 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -37,7 +37,8 @@ from leap.common.events import ( ) from twisted.web.server import Site -CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK=12345 +CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK = 12345 + def init_index_and_remove_dupes(querier, search_engine, mail_service): def wrapper(*args, **kwargs): @@ -56,7 +57,8 @@ def update_info_sync_and_index_partial(sync_info_controller, search_engine, mail return wrapper -def _setup_routes(app, home_controller, mails_controller, tags_controller, features_controller, sync_info_controller, attachments_controller): +def _setup_routes(app, home_controller, mails_controller, tags_controller, features_controller, sync_info_controller, + attachments_controller): # mails app.route('/mails', methods=['GET'])(mails_controller.mails) app.route('/mail/<mail_id>/read', methods=['POST'])(mails_controller.mark_mail_as_read) @@ -103,7 +105,6 @@ def look_for_user_key_and_create_if_cant_find(leap_session): return wrapper - def init_app(app): leap_session = init_leap_session(app) soledad_querier = SoledadQuerier(soledad=leap_session.account._soledad) |