Skip to content

Commit

Permalink
fix save pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Jul 29, 2024
1 parent 3400f79 commit 60736ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ftp_orders/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ def pull_result(self, file: str):
result.append(tmp_fractions.copy())
continue
tmp_fsli = obx.OBX.obx_3.obx_3_1.value

if tmp_fsli not in fractions_fsl:
fsli_error = True
continue
else:
tmp_fractions["fsli"] = tmp_fsli
tmp_fractions["title_fraction"] = obx.OBX.obx_3.obx_3_2.value
Expand All @@ -453,6 +455,16 @@ def pull_result(self, file: str):
result.append(tmp_fractions.copy())
if fsli_error:
Log.log(key=tube_number, type=190005, body={"tube": tube_number, "internal_code": internal_code, "researchTile": research_title, "file": file}, user=None)
if is_confirm:
iss.lab_comment = ""
iss.time_confirmation = datetime.datetime.strptime(date_time_confirm, "%Y%m%d%H%M%S")
iss.time_save = current_time()
iss.doc_confirmation_string = doctor_fio
iss.save()
if iss.napravleniye.hospital.result_push_by_numbers:
self.copy_file(file, iss.napravleniye.hospital.result_push_by_numbers)
self.copy_file(file, FTP_PATH_TO_SAVE)
self.delete_file(file)
if is_confirm:
iss.lab_comment = ""
iss.time_confirmation = datetime.datetime.strptime(date_time_confirm, "%Y%m%d%H%M%S")
Expand Down

0 comments on commit 60736ca

Please sign in to comment.