Skip to content

Commit

Permalink
reduce filename length
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-troy committed Oct 31, 2024
1 parent 844510b commit 01ed606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions liiatools/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class ProcessNames(StrEnum):

SESSIONS_FOLDER = "sessions"
ARCHIVE_FOLDER = "archive"
CURRENT_FOLDER = "current"
EXPORT_FOLDER = "export"
CURRENT_FOLDER = "cur"
EXPORT_FOLDER = "exp"


class SessionNames(StrEnum):
Expand Down
4 changes: 2 additions & 2 deletions liiatools/school_census_pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def process_session(source_fs: FS, output_fs: FS, la_code: str, filename: str):
# Export the current snapshot of the archive
current_data = archive.current()
current_data.export(
output_fs.opendir(ProcessNames.CURRENT_FOLDER), "school_census_current_", "csv"
output_fs.opendir(ProcessNames.CURRENT_FOLDER), "sc_current_", "csv"
)

# Create the different reports
export_folder = output_fs.opendir(ProcessNames.EXPORT_FOLDER)
for report in ["PAN"]:
report_data = prepare_export(current_data, pipeline_config, profile=report)
report_folder = export_folder.makedirs(report, recreate=True)
report_data.export(report_folder, "school_census_", "csv")
report_data.export(report_folder, "sc_", "csv")

0 comments on commit 01ed606

Please sign in to comment.