mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Fix calls to app.url_for
This commit is contained in:
parent
d56fe1f9fd
commit
458968a133
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ async def on_startup():
|
|||
@app.route("/", methods=["GET"])
|
||||
async def home(request, response):
|
||||
if not Delivery.is_defined() and not Groups.is_defined():
|
||||
response.redirect = url_for("onboarding")
|
||||
response.redirect = app.url_for("onboarding")
|
||||
return
|
||||
if not request["user"].group_id:
|
||||
response.redirect = url_for("groups")
|
||||
response.redirect = app.url_for("groups")
|
||||
return
|
||||
response.html(
|
||||
"delivery/list_deliveries.html",
|
||||
|
|
Loading…
Reference in a new issue