Skip to content

Commit

Permalink
Use defined RAWDATA path for divisions export
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Mar 21, 2024
1 parent 9bc5f66 commit 6e53e59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/division_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def export_division_data(verbose: bool = False):
"""
Export division data to publically accessible parquet files
"""
dest_path = Path("data", "pwdata", "votes")
config = fast_config(Path("conf", "general"))
raw_data_dir = Path(config["RAWDATA"])
dest_path = raw_data_dir / "votes"
dest_path.mkdir(parents=True, exist_ok=True)

db_connection = get_twfy_db_connection()
Expand Down

0 comments on commit 6e53e59

Please sign in to comment.