From 4977405935654318651a7503c74dfefd28329015 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 2 Dec 2021 10:12:51 +0100 Subject: [PATCH] submit_GET: fix manifest 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 4f48b3e..3301cdc 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -169,7 +169,10 @@ def index(): @jobs.route("/submit") @loginrequired def submit_GET(): - manifest = session.pop("manifest", default=None) + if request.args.get("manifest"): + manifest = request.args.get("manifest") + else: + manifest = session.pop("manifest", default=None) note = session.pop("note", default=None) note_rows = len(note.splitlines()) if isinstance(note, str) else 1 status = 200 -- 2.38.5