mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-21 07:11:39 -07:00
Change downloadable file names (#708)
* Change downloadable file names * Remove constants because we're dynamically creating these * Update to "communities" for the descriptor word based on team convo * Add timestamp in 2020-09-20-0930 format because I personally think this is the best ^.^ * Add a CLI command to run ETL Score Post so that we don't have to run the score generation just to get new downloadable files. * Also make sure the old downloadable files are cleaned up on the run of this command. * Remove unused library, thanks pylint! Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
This commit is contained in:
parent
bf80863460
commit
d8c73e6a02
4 changed files with 36 additions and 4 deletions
|
@ -186,9 +186,14 @@ def score_folder_cleanup() -> None:
|
|||
logger.info("Initializing all score data")
|
||||
remove_all_from_dir(data_path / "score" / "csv")
|
||||
remove_all_from_dir(data_path / "score" / "geojson")
|
||||
remove_all_from_dir(data_path / "score" / "downloadable")
|
||||
remove_all_from_dir(data_path / "score" / "tiles")
|
||||
downloadable_cleanup()
|
||||
|
||||
def downloadable_cleanup() -> None:
|
||||
"""Remove all files from downloadable directory in the local data/score path"""
|
||||
|
||||
data_path = settings.APP_ROOT / "data"
|
||||
remove_all_from_dir(data_path / "score" / "downloadable")
|
||||
|
||||
def temp_folder_cleanup() -> None:
|
||||
"""Remove all files and directories from the local data/tmp temporary path"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue