From 0e2fa35d4449ef3fee621564b0adc216af3e84c4 Mon Sep 17 00:00:00 2001
From: Robert Rosca <robert.rosca@xfel.eu>
Date: Thu, 5 Oct 2023 14:57:49 +0200
Subject: [PATCH] abort job submission on 'n' response

---
 webservice/manual_launch.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/webservice/manual_launch.py b/webservice/manual_launch.py
index a1dfe4c8b..a5a53aa9f 100644
--- a/webservice/manual_launch.py
+++ b/webservice/manual_launch.py
@@ -18,7 +18,7 @@ from rich.progress import (
     TextColumn,
     TimeElapsedColumn,
 )
-from rich.prompt import Prompt
+from rich.prompt import Confirm
 
 parser = argparse.ArgumentParser(
     description="Manually submit calibration jobs.",
@@ -195,9 +195,9 @@ def main(
     if not really:
         print("[yellow]`--really` flag missing, not submitting jobs")
 
-    if not noconfirm and not Prompt.ask(
+    if not noconfirm and not Confirm.ask(
         f"Submit [red bold]{len(requests)}[/red bold] jobs for proposal "
-        f"[bold]{proposal_no}[/bold]? [y/[bold]n[/bold]]",
+        f"[bold]{proposal_no}[/bold]?",
         default=False,
     ):
         print("[bold red]Aborted[/bold red]")
-- 
GitLab