From 90e0513db6d853f9b410e6fea4476664f79cc612 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 10 Jan 2024 15:46:11 +0800 Subject: [PATCH] =?UTF-8?q?refector:=20=E5=8F=96=E6=B6=88=E6=9C=AA?= =?UTF-8?q?=E5=A1=AB=E5=86=99mlog=E7=9A=84=E6=A0=A1=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E7=94=B1=E5=89=8D=E7=AB=AF=E6=9D=A5=E5=81=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/pm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pm/services.py b/apps/pm/services.py index 16a6af8e..c0d0c097 100644 --- a/apps/pm/services.py +++ b/apps/pm/services.py @@ -262,8 +262,8 @@ class PmService: now = timezone.now() if mtask.state == Mtask.MTASK_ASSGINED: mlogs = Mlog.objects.filter(mtask=mtask) - if mlogs.count() == 0: - raise ParseError(f'{mtask.mgroup.name}_未填写日志') + # if ignore_nologs is False and mlogs.count() == 0: + # raise ParseError(f'{mtask.mgroup.name}_未填写日志') for mlog in mlogs: mlog_submit(mlog, user, now) update_mtask(mtask)