Fix order_... renaming
This commit is contained in:
parent
112cafecbb
commit
a544836590
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ def webhook_text(order_item: Order) -> typing.Optional[str]:
|
|||
if order_item.courrier is not None:
|
||||
# pylint: disable=C0301
|
||||
return "<!channel|@channel> {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 "<!channel|@channel> 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),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<b>Orders:</b> {{ order.items.count() }}</p>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-3">
|
||||
<a class="btn btn-primary btn-block align-bottom" href="{{ url_for('order_bp.order', order_id=order.id) }}">Expand</a>
|
||||
<a class="btn btn-primary btn-block align-bottom" href="{{ url_for('order_bp.order_from_id', order_id=order.id) }}">Expand</a>
|
||||
</div>
|
||||
</div>
|
||||
{%- endmacro %}
|
||||
|
|
Loading…
Reference in a new issue