Skip to content

Commit

Permalink
more descriptive processing
Browse files Browse the repository at this point in the history
  • Loading branch information
threnjen committed Oct 16, 2024
1 parent 059469f commit f4ed3f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/processing_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@

def save_file_local_first(path: str, file_name: str, data: Union[pd.DataFrame, dict]):
file_path = f"{path}/{file_name}"
print(file_path)

if IS_LOCAL:
print(f"Saving {file_name} to local")
LocalFileHandler().save_file(file_path=file_path, data=data)
if ENV == "prod":
print(f"Saving {file_name} to S3")
S3FileHandler().save_file(file_path=file_path, data=data)


Expand Down

0 comments on commit f4ed3f0

Please sign in to comment.