diff --git a/src/outputs/long_form.py b/src/outputs/long_form.py index fd43d1e2..35a0923c 100644 --- a/src/outputs/long_form.py +++ b/src/outputs/long_form.py @@ -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__) @@ -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)