refector: 取消未填写mlog的校验,由前端来做
This commit is contained in:
parent
c61507c7dd
commit
90e0513db6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue