Skip to content

Commit

Permalink
updated script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan2Y79 committed Nov 8, 2024
1 parent 1b5bdd0 commit 8ccd0ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/outputs/long_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import src.outputs.map_output_cols as map_o
from src.staging.validation import load_schema
from src.outputs.outputs_helpers import create_output_df
from src.utils.local_file_mods import filename_survey_prefixer

OutputMainLogger = logging.getLogger(__name__)

Expand Down Expand Up @@ -43,5 +44,7 @@ def output_long_form(

tdate = datetime.now().strftime("%y-%m-%d")
survey_year = config["survey"]["survey_year"]
survey_type = config["survey"]["survey_type"]
filename = f"{survey_year}_long_form_{tdate}_v{run_id}.csv"
filename = filename_survey_prefixer(filename, survey_type)
write_csv(f"{output_path}/output_long_form/{filename}", longform_output)

0 comments on commit 8ccd0ee

Please sign in to comment.