From db88dc2237158f1dc6f2a704a28bf4d967e6e289 Mon Sep 17 00:00:00 2001 From: Matt Webb Date: Thu, 25 Sep 2014 10:52:36 +0100 Subject: [PATCH] minor tidy --- app/__init__.py | 2 +- app/core/__init__.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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() -- 2.47.3