From: Matt Webb Date: Thu, 25 Sep 2014 09:52:36 +0000 (+0100) Subject: minor tidy X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=db88dc2237158f1dc6f2a704a28bf4d967e6e289;p=sirius.git minor tidy --- diff --git a/app/__init__.py b/app/__init__.py index fe44246..a2f786e 100755 --- a/app/__init__.py +++ b/app/__init__.py @@ -37,6 +37,6 @@ def create_app(config_name): from .main import main as main_blueprint app.register_blueprint(main_blueprint) - from .core import socket, command_sender + from .core import coresocket, command_sender return app diff --git a/app/core/__init__.py b/app/core/__init__.py index e291967..da94099 100644 --- a/app/core/__init__.py +++ b/app/core/__init__.py @@ -70,10 +70,8 @@ class WebsocketClient(object): # see https://devcenter.heroku.com/articles/python-websockets # for a good pattern @sockets.route('/api/v1/connection') -def socket(ws): +def coresocket(ws): print "here" - done_once = False - counting = 0 command_sender.register(ws) while True: message = ws.receive()