From a544836590b7e3ea77ad5fb4487c08764d23726b Mon Sep 17 00:00:00 2001
From: Jan-Pieter Baert
Date: Thu, 24 Oct 2019 14:13:13 +0200
Subject: [PATCH] Fix order_... renaming
---
app/notification.py | 4 ++--
app/templates/utils.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/notification.py b/app/notification.py
index ec55454..4fe4653 100644
--- a/app/notification.py
+++ b/app/notification.py
@@ -18,7 +18,7 @@ def webhook_text(order_item: Order) -> typing.Optional[str]:
if order_item.courrier is not None:
# pylint: disable=C0301
return " {3} is going to {1}, order <{0}|here>! Deadline in {2} minutes!".format(
- url_for("order_bp.order", id=order_item.id, _external=True),
+ url_for("order_bp.order_from_id", order_id=order_item.id, _external=True),
order_item.location.name,
remaining_minutes(order_item.stoptime),
order_item.courrier.username.title(),
@@ -27,7 +27,7 @@ def webhook_text(order_item: Order) -> typing.Optional[str]:
return " New order for {}. Deadline in {} minutes. <{}|Open here.>".format(
order_item.location.name,
remaining_minutes(order_item.stoptime),
- url_for("order_bp.order", id=order_item.id, _external=True),
+ url_for("order_bp.order_from_id", order_id=order_item.id, _external=True),
)
diff --git a/app/templates/utils.html b/app/templates/utils.html
index 4abfa7c..78dcbd4 100644
--- a/app/templates/utils.html
+++ b/app/templates/utils.html
@@ -9,7 +9,7 @@
Orders: {{ order.items.count() }}
{%- endmacro %}