Skip to content
Snippets Groups Projects
Commit 0e2fa35d authored by Robert Rosca's avatar Robert Rosca
Browse files

abort job submission on 'n' response

parent 692ccbd3
Branches fix/manual-submit-confirmation
No related tags found
1 merge request!904Fix/manual submit confirmation
......@@ -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]")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment