Skip to content

Commit

Permalink
copy to save and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Jun 30, 2024
1 parent af6ecf6 commit 52324be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ftp_orders/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ftp_orders.sql_func import get_tubesregistration_id_by_iss
from hospitals.models import Hospitals
from directory.models import Researches, Fractions
from laboratory.settings import BASE_DIR, NEED_RECIEVE_TUBE_TO_PUSH_ORDER, FTP_SETUP_TO_SEND_HL7_BY_RESEARCHES, OWN_SETUP_TO_SEND_FTP_EXECUTOR
from laboratory.settings import BASE_DIR, NEED_RECIEVE_TUBE_TO_PUSH_ORDER, FTP_SETUP_TO_SEND_HL7_BY_RESEARCHES, OWN_SETUP_TO_SEND_FTP_EXECUTOR, FTP_PATH_TO_SAVE
from laboratory.utils import current_time
from slog.models import Log
from users.models import DoctorProfile
Expand Down Expand Up @@ -447,6 +447,8 @@ def pull_result(self, file: str):
iss.time_save = current_time()
iss.doc_confirmation_string = ""
iss.save()
self.copy_file(file, FTP_PATH_TO_SAVE)
self.delete_file(file)

def push_order(self, direction: Napravleniya):
hl7 = core.Message("ORM_O01", validation_level=VALIDATION_LEVEL.QUIET)
Expand Down
1 change: 1 addition & 0 deletions laboratory/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def __getitem__(self, item):
TUBE_BARCODE_OFFSET_X = 1
TUBE_BARCODE_WIDTH_MINDEX = 0.0125
RELATED_AGREES_FORMS_TOGETHER = {}
FTP_PATH_TO_SAVE = ""

FCM_CERT_PATH = ""
PROMETHEUS_ENABLED = False
Expand Down

0 comments on commit 52324be

Please sign in to comment.