fix: 取消提交日志时时间校验

This commit is contained in:
caoqianming 2025-05-22 09:16:53 +08:00
parent fdb454d6e5
commit 68d065a2e3
1 changed files with 3 additions and 3 deletions

View File

@ -155,9 +155,9 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
if now is None:
now = timezone.now()
if mlog.handle_date is None:
raise ParseError('请选择结束/操作时间')
if now.date() < mlog.handle_date:
raise ParseError('不可提交未来的日志')
raise ParseError('请选择操作结束时间/操作日期')
# if now.date() < mlog.handle_date:
# raise ParseError('不可提交未来的日志')
mgroup = mlog.mgroup
process = mgroup.process