Skip to content

Commit

Permalink
Update command_utils/management/commands/import_mkb.py
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
urchinpro and github-actions[bot] authored Dec 15, 2024
1 parent f8c4aba commit e491a0e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions command_utils/management/commands/import_mkb.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,5 @@ def handle(self, *args, **kwargs):
else:
r = Diagnoses.objects.filter(code=cells[code], d_type=mode)
if not r.exists():
Diagnoses(
d_type=mode,
code=cells[code],
title=cells[title],
nsi_id=cells[nsi_id],
hide=False,
m_type=2
).save()
Diagnoses(d_type=mode, code=cells[code], title=cells[title], nsi_id=cells[nsi_id], hide=False, m_type=2).save()
print('сохранено', cells[code]) # noqa: T001

0 comments on commit e491a0e

Please sign in to comment.