From a00f533752504ebdf1cd61b3d230dbbe57d000f9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 14 Nov 2024 11:39:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mlog=20submit=20=E5=85=B3=E4=BA=8Ewm.bat?= =?UTF-8?q?ch=5Fofrom=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 756999c1..3a701669 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -224,7 +224,6 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): elif isinstance(mlog_or_b, Mlogb): wm.batch_ofrom = mlog_or_b.batch_ofrom wm.material_ofrom = mlog_or_b.material_ofrom - wm.batch_ofrom = mlog_or_b wm.save() mlog.submit_time = now