From fea3c320a99730d17102398af984d044d3343439 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 11 Jun 2025 10:58:31 +0800 Subject: [PATCH] feat: gen_number_with_rule bug --- apps/wpm/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index eaececeb..2d69ea39 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -698,6 +698,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust cq_w = 4 if '02d' in rule: cq_w = 2 + n_count = 0 if wpr: try: n_count = int(wpr.number[-cq_w:].lstrip('0'))