fix exam 考试

This commit is contained in:
zty 2024-07-29 16:35:08 +08:00
parent 7f587cb8e4
commit af9315629d
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G
cer_number = now_data.strftime('%Y%m%d') cer_number = now_data.strftime('%Y%m%d')
# 获取锁 # 获取锁
iden = acquire_lock('certificate') iden = acquire_lock('certificate')
if iden is False: if iden is None:
raise ParseError("系统忙, 请稍后再试") raise ParseError("系统忙, 请稍后再试")
try: try:
# 查询证明编号创建时间为最后一个 # 查询证明编号创建时间为最后一个