From af9315629db1a68ebe66e9272f562e184f69385e Mon Sep 17 00:00:00 2001 From: zty Date: Mon, 29 Jul 2024 16:35:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=20exam=20=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/exam/views.py b/server/apps/exam/views.py index 689d5c0..6a7b8b1 100644 --- a/server/apps/exam/views.py +++ b/server/apps/exam/views.py @@ -690,7 +690,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G cer_number = now_data.strftime('%Y%m%d') # 获取锁 iden = acquire_lock('certificate') - if iden is False: + if iden is None: raise ParseError("系统忙, 请稍后再试") try: # 查询证明编号创建时间为最后一个