diff options
| author | 2018-03-30 15:22:38 +0100 | |
|---|---|---|
| committer | 2018-03-30 15:22:38 +0100 | |
| commit | 55ad00b5a4f1cf88307ec082e7ac41bc3ebf33f8 (patch) | |
| tree | 7dd71afa7accad6ccff1988b3ed228f65785c5b6 | |
| parent | Decorator for routes that require a login with one of a set of roles (diff) | |
Flake8
| -rw-r--r-- | pysite/mixins.py | 2 | ||||
| -rw-r--r-- | pysite/route_manager.py | 4 | ||||
| -rw-r--r-- | pysite/views/api/bot/tags.py | 2 | 
3 files changed, 4 insertions, 4 deletions
| 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 | 
