Skip to content

Commit

Permalink
fix: Small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Aug 2, 2024
1 parent 29650e7 commit 478f58a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sample_data/ingest_sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@


USE_CASE_FOLDER = Path('sample_data/use_cases')
DOWNLOADS_FOLDER = Path('sample_data/downloads')


def ingest_file(file_info, index=0, dataset=None, chart=None):
Expand All @@ -20,7 +21,7 @@ def ingest_file(file_info, index=0, dataset=None, chart=None):
file_url = file_info.get('url')
file_metadata = file_info.get('metadata', {})

file_location = Path('sample_data/downloads', file_path)
file_location = Path(DOWNLOADS_FOLDER, file_path)
file_type = file_path.split('.')[-1]
if not file_location.exists():
print(f'\t Downloading data file {file_name}.')
Expand Down

0 comments on commit 478f58a

Please sign in to comment.