feat: 默认提交时间为结束时间

This commit is contained in:
caoqianming 2025-09-12 10:11:25 +08:00
parent c4c61ff737
commit c9a2daaa48
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
mlog.submit_user = user
mlog.stored_notok = stored_notok
mlog.stored_mgroup = stored_mgroup
if mlog.work_end_time is None:
mlog.work_end_time = now
mlog.save()
# 更新任务进度