~comcloudway/builds.sr.ht

4977405935654318651a7503c74dfefd28329015 — Drew DeVault 2 years ago 36518bc
submit_GET: fix manifest via query params
1 files changed, 4 insertions(+), 1 deletions(-)

M buildsrht/blueprints/jobs.py
M buildsrht/blueprints/jobs.py => buildsrht/blueprints/jobs.py +4 -1
@@ 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