fix status val

This commit is contained in:
2025-08-09 20:14:20 +02:00
parent 3a3b63e360
commit cfb185e029
4 changed files with 25 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ async def worker(worker_id: int, cfg: object, pool: object) -> None:
if record:
id, unit_type, tool_type, unit_name, tool_name = [x.lower().replace(" ", "_") if isinstance(x, str) else x for x in record]
tool_elab_info = await get_tool_info(fase, unit_name, tool_name, pool)
tool_elab_info = await get_tool_info(fase, unit_name.upper(), tool_name.upper(), pool)
if fase == WorkflowFlags.SENT_ELAB_DATA and tool_elab_info['ftp_send']:
timestamp_matlab_elab = get_elab_timestamp(id, pool)
if not tool_elab_info["duedate"] or tool_elab_info["duedate"] in ('0000-00-00 00:00:00', '') or tool_elab_info["duedate"] > timestamp_matlab_elab: