aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-30 15:22:38 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-30 15:22:38 +0100
commit55ad00b5a4f1cf88307ec082e7ac41bc3ebf33f8 (patch)
tree7dd71afa7accad6ccff1988b3ed228f65785c5b6 /pysite
parentDecorator for routes that require a login with one of a set of roles (diff)
Flake8
Diffstat (limited to 'pysite')
-rw-r--r--pysite/mixins.py2
-rw-r--r--pysite/route_manager.py4
-rw-r--r--pysite/views/api/bot/tags.py2
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