From 3d087da6ec41d4a49a90465df3887d6034397e25 Mon Sep 17 00:00:00 2001 From: sergei kasianenko Date: Mon, 2 Dec 2024 14:58:41 +0800 Subject: [PATCH] fixcdaImport --- external_system/management/commands/cda_import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external_system/management/commands/cda_import.py b/external_system/management/commands/cda_import.py index 848580b7aa..9943244afa 100644 --- a/external_system/management/commands/cda_import.py +++ b/external_system/management/commands/cda_import.py @@ -32,9 +32,9 @@ def handle(self, *args, **kwargs): else: cda = CdaFields.objects.filter(title=cells[title]) if not cda.exists(): - if doc_refferal == 1: + if int(doc_refferal) == 1: is_doc_refferal = True - if extract == 1: + if int(extract) == 1: is_extract = True CdaFields(title=cells[title], is_doc_refferal=is_doc_refferal, is_extract=is_extract).save() - self.stdout.write('сохранено', cells[title]) + self.stdout.write(f'сохранено {cells[title]}')