Skip to content
Snippets Groups Projects
Commit bb70cbee authored by Thomas Michelat's avatar Thomas Michelat
Browse files

FIX: manual launch don't skip the last run of the proposal

parent 0b54d3b3
No related branches found
No related tags found
1 merge request!1075FIX: manual launch don't skip the last run of the proposal
...@@ -173,7 +173,7 @@ def main( ...@@ -173,7 +173,7 @@ def main(
all_runs = get_runs_by_proposal_all(proposal_no) all_runs = get_runs_by_proposal_all(proposal_no)
run_no_id_map = {run["run_number"]: run["id"] for run in all_runs} run_no_id_map = {run["run_number"]: run["id"] for run in all_runs}
max_run_no = max(run_no_id_map.keys()) max_run_no = max(run_no_id_map.keys()) + 1
requested_ranges = [range(*s.indices(max_run_no)) for s in slices] requested_ranges = [range(*s.indices(max_run_no)) for s in slices]
requested_run_nos = {run_no for r in requested_ranges for run_no in r} requested_run_nos = {run_no for r in requested_ranges for run_no in r}
......
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