Fix for reverse proxies
This commit is contained in:
parent
d561350082
commit
6275db279d
@ -39,6 +39,7 @@ ROUTE_TYPE = 0
|
||||
timezone = pytz.timezone('Australia/Melbourne')
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/index')
|
||||
def index():
|
||||
return flask.render_template('index.html')
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
<body>
|
||||
<ul>
|
||||
{% for stop_id, stop_name in stations %}
|
||||
<li><a href="/?stop_id={{stop_id}}">{{stop_name}}</a></li>
|
||||
<li><a href="index?stop_id={{stop_id}}">{{stop_name}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user