Trip list URL to redirect
This commit is contained in:
parent
a253f720dd
commit
d5a92c9a8e
10
web_view.py
10
web_view.py
|
@ -245,8 +245,8 @@ def get_trip_list(
|
|||
]
|
||||
|
||||
|
||||
@app.route("/trip")
|
||||
def trip_list() -> str:
|
||||
@app.route("/trip/old")
|
||||
def trip_old_list() -> str:
|
||||
"""Page showing a list of trips."""
|
||||
route_distances = agenda.travel.load_route_distances(app.config["DATA_DIR"])
|
||||
trip_list = get_trip_list(route_distances)
|
||||
|
@ -280,6 +280,12 @@ def trip_list() -> str:
|
|||
)
|
||||
|
||||
|
||||
@app.route("/trip")
|
||||
def trip_list() -> werkzeug.Response:
|
||||
"""Trip list to redirect to future trip list."""
|
||||
return flask.redirect(flask.url_for("trip_future_list"))
|
||||
|
||||
|
||||
@app.route("/trip/past")
|
||||
def trip_past_list() -> str:
|
||||
"""Page showing a list of past trips."""
|
||||
|
|
Loading…
Reference in a new issue