diff --git a/portal.py b/portal.py index 8965f89..75cad1e 100644 --- a/portal.py +++ b/portal.py @@ -15,7 +15,7 @@ except ImportError: from redis import Redis from rq import Queue -from bottle import Bottle, default_app +from bottle import Bottle, default_app, debug from bottle import request, response, template, static_file config = RawConfigParser() @@ -232,6 +232,6 @@ if __name__ == '__main__': host=config.get('portal', 'listen_host'), port=config.getint('portal', 'listen_port') ) - debug(config.getbool('portal', 'debug')) + debug(config.getboolean('portal', 'debug')) else: application = app diff --git a/static/js/captiveportal.js b/static/js/captiveportal.js index 9e72f02..59c4bed 100644 --- a/static/js/captiveportal.js +++ b/static/js/captiveportal.js @@ -174,4 +174,5 @@ $('#approveForm').submit(function (event) { do_error(XMLHttpRequest.responseText); }); } + });