fix: get_alldata_with_batch hanle_user bug

This commit is contained in:
caoqianming 2024-12-04 12:42:12 +08:00
parent 784500bf5b
commit 7ce9ed5a19
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ def get_alldata_with_batch(batch: str):
if item.handle_date:
data["管料退火_日期"].append(item.handle_date)
if item.handle_user:
data["管料退火_操作人"].append(item.mlog_user)
data["管料退火_操作人"].append(item.handle_user)
for field in mlog_count_fields:
if getattr(item, field) > 0 or field in ["count", "count_notok"]:
if f'管料退火_{field}' not in data: