From 239a7b50f3013fa72b632de17fb143e95b6ace6c Mon Sep 17 00:00:00 2001 From: Oleksii Lialka Date: Fri, 26 Feb 2021 11:30:07 +0200 Subject: [PATCH] fix issue with fetching datasource objects to specified directory --- .../{{ cookiecutter.module_name }}/data/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/data/datasets.py b/{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/data/datasets.py index d9f0fd6..ee50d44 100644 --- a/{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/data/datasets.py +++ b/{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/data/datasets.py @@ -1276,7 +1276,7 @@ def fetch(self, fetch_path=None, fetch_options=None, force_download=False): self.fetched_files_ = [] self.fetched_ = True for filename, fetch_params in self.file_dict.items(): - fetch_kwargs = {**fetch_params, **fetch_options, 'force':force_download} + fetch_kwargs = {**fetch_params, **fetch_options, 'force':force_download, 'dst_dir':self.download_dir} status, result, hash_value = fetch_file(**fetch_kwargs) if status: # True (cached) or HTTP Code (successful download) fetch_params['hash_value'] = hash_value