From 56c93dc72ae56f19dab8f11b9238081b630dc39f Mon Sep 17 00:00:00 2001 From: Dhruvin Gandhi Date: Thu, 2 Dec 2021 17:34:16 +0530 Subject: [PATCH] submit_GET: accept note via query params --- buildsrht/blueprints/jobs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py index 3301cdc..a354c64 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -173,7 +173,10 @@ def submit_GET(): manifest = request.args.get("manifest") else: manifest = session.pop("manifest", default=None) - note = session.pop("note", default=None) + if request.args.get("note"): + note = request.args.get("note") + else: + note = session.pop("note", default=None) note_rows = len(note.splitlines()) if isinstance(note, str) else 1 status = 200 payment_required = requires_payment(current_user) -- 2.38.5