fix exam 考试

This commit is contained in:
zty 2024-07-29 16:29:48 +08:00
parent 14155aef3d
commit a20761278f
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, RetrieveModelMixin, G
# 获取锁 # 获取锁
iden = acquire_lock('certificate') iden = acquire_lock('certificate')
if iden is None: if iden is None:
raise ParseError("系统忙,请稍后再试") raise ParseError("系统忙, 请稍后再试")
try: try:
# 查询证明编号创建时间为最后一个 # 查询证明编号创建时间为最后一个
cer = Certificate.objects.latest('证书编号') cer = Certificate.objects.latest('证书编号')