From 55ad00b5a4f1cf88307ec082e7ac41bc3ebf33f8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Fri, 30 Mar 2018 15:22:38 +0100 Subject: Flake8 --- pysite/mixins.py | 2 +- pysite/route_manager.py | 4 ++-- pysite/views/api/bot/tags.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pysite') diff --git a/pysite/mixins.py b/pysite/mixins.py index cfebae88..a2730ae4 100644 --- a/pysite/mixins.py +++ b/pysite/mixins.py @@ -1,5 +1,5 @@ # coding=utf-8 -from _weakref import ref +from weakref import ref from flask import Blueprint from rethinkdb.ast import Table diff --git a/pysite/route_manager.py b/pysite/route_manager.py index f8bd705b..c702ea36 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -10,7 +10,7 @@ from flask_sockets import Sockets from pysite.base_route import APIView, BaseView, ErrorView, RouteView from pysite.constants import ( - DISCORD_OAUTH_ID, DISCORD_OAUTH_SCOPE, DISCORD_OAUTH_SECRET, DISCORD_OAUTH_REDIRECT, DISCORD_OAUTH_AUTHORIZED, + DISCORD_OAUTH_AUTHORIZED, DISCORD_OAUTH_ID, DISCORD_OAUTH_REDIRECT, DISCORD_OAUTH_SCOPE, DISCORD_OAUTH_SECRET, PREFERRED_URL_SCHEME) from pysite.database import RethinkDB from pysite.oauth import OauthBackend @@ -95,7 +95,7 @@ class RouteManager: from geventwebsocket.handler import WebSocketHandler server = WSGIServer( - ("", int(os.environ.get("WEBPAGE_PORT", 8080))), + ("0.0.0.0", int(os.environ.get("WEBPAGE_PORT", 8080))), self.app, handler_class=WebSocketHandler ) server.serve_forever() diff --git a/pysite/views/api/bot/tags.py b/pysite/views/api/bot/tags.py index 6bedac7f..21b64c2c 100644 --- a/pysite/views/api/bot/tags.py +++ b/pysite/views/api/bot/tags.py @@ -1,7 +1,7 @@ # coding=utf-8 from flask import jsonify -from schema import Schema, Optional +from schema import Optional, Schema from pysite.base_route import APIView from pysite.constants import ValidationTypes -- cgit v1.2.3