From 68d065a2e3ffe9ddf641a6ce75a07727d9fc4a05 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 22 May 2025 09:16:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=B6=E6=97=B6=E9=97=B4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 966af454..aa37deee 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -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