Skip to content

Commit

Permalink
fixcdaImport
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Dec 2, 2024
1 parent 230b7ec commit 3d087da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external_system/management/commands/cda_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}')

0 comments on commit 3d087da

Please sign in to comment.