From 8928bb43072c7addbe89add86799e54788b7a375 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 14 Mar 2025 18:19:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20wpr=20delete=E5=9C=A8=E6=92=A4=E9=94=80?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E4=BB=A5=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpmw/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpmw/models.py b/apps/wpmw/models.py index 08ffdc61..5ae27ab0 100644 --- a/apps/wpmw/models.py +++ b/apps/wpmw/models.py @@ -33,7 +33,7 @@ class Wpr(BaseModel): if wpr: ins:Wpr = wpr - if wpr and mb is None and wm is None and ins.version <=1: + if wpr and mb is None and wm is None and ins.version <= 0: # 相当于撤回操作 wpr.delete() return elif number: