fix: imp_202312 bug
This commit is contained in:
parent
5058c17177
commit
8a0c1816be
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue