fix(status): simplify terminal step guard condition in get_step_summary
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -358,7 +358,7 @@ def get_step_summary(db: Session, file_id: int) -> Dict:
|
|||||||
# Note: if TERMINAL_STEP already appears in `steps`, the loop above has
|
# Note: if TERMINAL_STEP already appears in `steps`, the loop above has
|
||||||
# already incremented `main_steps_count` for it, so we only add here when
|
# already incremented `main_steps_count` for it, so we only add here when
|
||||||
# the step is absent from the DB entirely.
|
# the step is absent from the DB entirely.
|
||||||
if not any(step.step_name == TERMINAL_STEP for step in steps if step.step_name in REAL_MAIN_STEPS):
|
if not any(step.step_name == TERMINAL_STEP for step in steps):
|
||||||
main_steps_count += 1
|
main_steps_count += 1
|
||||||
main_counts["queued"] += 1
|
main_counts["queued"] += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user