Skip to content

Commit

Permalink
send_via_ftps added to single API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Jan 30, 2024
1 parent 226e18d commit 42675b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pixl_ehr/src/pixl_ehr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ def export_patient_data(export_params: ExportRadiologyData) -> None:
)
pe.export_radiology(anon_data)

send_via_ftps(export_params.project_name, export_params.extract_datetime)
send_via_ftps(
export_params.project_name, export_params.extract_datetime, export_params.output_dir
)


def send_via_ftps(project_name: str, extract_datetime: datetime) -> None:
def send_via_ftps(project_name: str, extract_datetime: datetime, export_dir: Path) -> None:
"""Send parquet files via FTPS"""
pe = ParquetExport(project_name, extract_datetime)
pe = ParquetExport(project_name, extract_datetime, export_dir)
upload_parquet_files(pe)


Expand Down

0 comments on commit 42675b6

Please sign in to comment.