From 5d92590877b129c4d285b8ced7f9bdfa5fc1da00 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 21 Feb 2022 11:31:38 -0800 Subject: [PATCH] Use the word Release in the context of making a SCSI ID available for use, rather than the word Unreserve which is poor English. (#692) --- python/web/src/templates/index.html | 4 ++-- python/web/src/web.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/web/src/templates/index.html b/python/web/src/templates/index.html index 7dda1c79..43d0a328 100644 --- a/python/web/src/templates/index.html +++ b/python/web/src/templates/index.html @@ -130,9 +130,9 @@ {{ RESERVATIONS[device.id] }} -
+ - +
{% endif %} diff --git a/python/web/src/web.py b/python/web/src/web.py index df458c96..59a89862 100644 --- a/python/web/src/web.py +++ b/python/web/src/web.py @@ -712,11 +712,11 @@ def reserve_id(): flash(process["msg"], "error") return redirect(url_for("index")) -@APP.route("/scsi/unreserve", methods=["POST"]) +@APP.route("/scsi/release", methods=["POST"]) @login_required -def unreserve_id(): +def release_id(): """ - Removes the reservation of a SCSI ID as well as the memo for the reservation + Releases the reservation of a SCSI ID as well as the memo for the reservation """ scsi_id = request.form.get("scsi_id") reserved_ids = ractl.get_reserved_ids()["ids"]