fix: imp_202312 bug

This commit is contained in:
caoqianming 2024-01-03 11:11:58 +08:00
parent 5058c17177
commit 8a0c1816be
1 changed files with 1 additions and 1 deletions

View File

@ -114,9 +114,9 @@ class CertificateViewSet(CreateUpdateCustomMixin, ModelViewSet):
while sheet[f"a{i}"].value:
number = sheet[f"a{i}"].value.replace("\n", "").replace(" ", "")
name = sheet[f"b{i}"].value.replace("\n", "").replace(" ", "")
print(number)
obj, created = Certificate.objects.update_or_create(
defaults={
"证书方案": "202312",
"证书编号": number,
"姓名": name,
"培训日期": att_date,