From 2bb9e78e63574180e2ed13a5d5a105189dd88f5d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 17 Aug 2022 23:59:46 +0000 Subject: [PATCH] api_collection_extract: Rename var m to c for collection --- server/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/app.py b/server/app.py index aa71226..d73e1f8 100644 --- a/server/app.py +++ b/server/app.py @@ -521,10 +521,10 @@ def api_collection_extract(): "status": False, "error": f"Missing uri value to extract", } - m = collection_extract_uri(data["uri"]) + c = collection_extract_uri(data["uri"]) orm.flush() - if m and environ_bool(data.get("redirect_to_object", False)): - return redirect(m.info_link) + if c and environ_bool(data.get("redirect_to_object", False)): + return redirect(c.info_link) return redirect_back_or_okay() @flask_app.route("/api/collection/", methods=["GET", "POST"])