This commit is contained in:
2026-07-10 18:12:17 +09:00
parent 50d75fcfcd
commit e3d66e717c
28 changed files with 2542 additions and 99 deletions
+9 -7
View File
@@ -18,18 +18,20 @@ def _role(value: str | None) -> str:
def _stage_from_status(status: str | None) -> tuple[int, int]:
value = status or "NEW"
if value in {"WF1_ANALYZING", "WF1_FAILED"}:
return 1, round(1 / 7 * 100)
order = [
("FILE_UPLOADED", 1),
("WF1", 2),
("WF2", 3),
("WF3", 4),
("WF4", 5),
("WF5", 6),
("WF6", 7),
("WF1_COMPLETE", 2),
("WF2_COMPLETE", 3),
("WF3_COMPLETE", 4),
("WF4_COMPLETE", 5),
("WF5_COMPLETE", 6),
("WF6_COMPLETE", 7),
("DONE", 7),
("CONFIRMED", 7),
]
value = status or "NEW"
stage = 0
for token, idx in order:
if token in value: