Tested with guniconr on ares
This commit is contained in:
parent
5dd441a05f
commit
cceb0887ea
|
|
@ -45,6 +45,7 @@ def make_app():
|
||||||
app.jinja_env.globals['static'] = (
|
app.jinja_env.globals['static'] = (
|
||||||
lambda filename: url_for('static', filename = filename)
|
lambda filename: url_for('static', filename = filename)
|
||||||
)
|
)
|
||||||
|
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||||||
app.config['LIVERELOAD'] = True
|
app.config['LIVERELOAD'] = True
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ def extract_time(json):
|
||||||
|
|
||||||
# <GT name ="DepartureTime" value='$dateadd(0.10:15:00)' />
|
# <GT name ="DepartureTime" value='$dateadd(0.10:15:00)' />
|
||||||
def ferry_request():
|
def ferry_request():
|
||||||
url = 'http://api.trafikinfo.trafikverket.se/beta/data.json'
|
url = 'http://api.trafikinfo.trafikverket.se/v1.2/data.json'
|
||||||
headers = {'Content-Type': 'text/xml'}
|
headers = {'Content-Type': 'text/xml'}
|
||||||
xml_data = """<?xml version='1.0' encoding='utf-8'?>
|
xml_data = """<?xml version='1.0' encoding='utf-8'?>
|
||||||
<REQUEST>
|
<REQUEST>
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
appdirs==1.4.3
|
|
||||||
backports-abc==0.5
|
backports-abc==0.5
|
||||||
certifi==2017.4.17
|
certifi==2017.4.17
|
||||||
click==6.7
|
click==6.7
|
||||||
|
dominate==2.3.1
|
||||||
Flask==0.12.1
|
Flask==0.12.1
|
||||||
|
Flask-Bootstrap==3.3.7.1
|
||||||
|
gunicorn==19.7.1
|
||||||
itsdangerous==0.24
|
itsdangerous==0.24
|
||||||
Jinja2==2.9.6
|
Jinja2==2.9.6
|
||||||
livereload==2.5.1
|
livereload==2.5.1
|
||||||
MarkupSafe==1.0
|
MarkupSafe==1.0
|
||||||
packaging==16.8
|
|
||||||
pyparsing==2.2.0
|
|
||||||
requests==2.13.0
|
requests==2.13.0
|
||||||
singledispatch==3.4.0.3
|
singledispatch==3.4.0.3
|
||||||
six==1.10.0
|
six==1.10.0
|
||||||
tornado==4.5.1
|
tornado==4.5.1
|
||||||
|
visitor==0.1.3
|
||||||
Werkzeug==0.12.1
|
Werkzeug==0.12.1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue