Tested with guniconr on ares

This commit is contained in:
Simon 2017-05-17 21:27:50 +02:00
parent 5dd441a05f
commit cceb0887ea
3 changed files with 6 additions and 4 deletions

View File

@ -45,6 +45,7 @@ def make_app():
app.jinja_env.globals['static'] = (
lambda filename: url_for('static', filename = filename)
)
app.wsgi_app = ReverseProxied(app.wsgi_app)
app.config['LIVERELOAD'] = True
return app

View File

@ -33,7 +33,7 @@ def extract_time(json):
# <GT name ="DepartureTime" value='$dateadd(0.10:15:00)' />
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'}
xml_data = """<?xml version='1.0' encoding='utf-8'?>
<REQUEST>

View File

@ -1,16 +1,17 @@
appdirs==1.4.3
backports-abc==0.5
certifi==2017.4.17
click==6.7
dominate==2.3.1
Flask==0.12.1
Flask-Bootstrap==3.3.7.1
gunicorn==19.7.1
itsdangerous==0.24
Jinja2==2.9.6
livereload==2.5.1
MarkupSafe==1.0
packaging==16.8
pyparsing==2.2.0
requests==2.13.0
singledispatch==3.4.0.3
six==1.10.0
tornado==4.5.1
visitor==0.1.3
Werkzeug==0.12.1