Skip to content

Commit

Permalink
Merge pull request #4085 from mikhailprivalov/fix-pull-result
Browse files Browse the repository at this point in the history
Fix pull result
  • Loading branch information
urchinpro authored Jul 10, 2024
2 parents 33eec43 + a2d0636 commit 54d5feb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ftp_orders/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,16 @@ def pull_result(self, file: str):
iss = Issledovaniya.objects.filter(external_add_order__external_add_order=external_add_order).first()
else:
iss = Issledovaniya.objects.filter(id=iss_id).first()
if not iss:
Log.log(
key=tube_number,
type=190005,
body={"tube": tube_number, "internal_code": internal_code, "researchTile": research_title, "file": file, "reason": "нет такого исследования"},
user=None,
)
self.copy_file(file, FTP_PATH_TO_SAVE)
self.delete_file(file)
return
fractions_data = get_fsli_fractions_by_research_id(iss.research_id)
fractions_fsl = [i.fraction_fsli for i in fractions_data]

Expand Down

0 comments on commit 54d5feb

Please sign in to comment.