Skip to content
Snippets Groups Projects
Commit 7a0662aa authored by Simon Grasse's avatar Simon Grasse
Browse files

fix: actually write data in AnalysisServiceDownload

parent 97f69cd2
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
......@@ -185,9 +185,9 @@ class AnalysisService:
class AnalysisServiceDownload(AnalysisService):
def __init__(
self, status_endpoint, cache_dir, sample_dir: Path, use_downloaded=True
self, stats_endpoint, cache_dir, sample_dir: Path, use_downloaded=True
):
super().__init__(status_endpoint, cache_dir)
super().__init__(stats_endpoint, cache_dir)
self.sample_dir = sample_dir
self.use_downloaded = use_downloaded
......@@ -197,9 +197,9 @@ class AnalysisServiceDownload(AnalysisService):
needs_fresh_download = (not self.use_downloaded) or (not filename.is_file())
if needs_fresh_download:
content = self.connection.get(query_options)
response = self.connection.get(query_options)
with open(filename, "w+b") as downloaded_file:
downloaded_file.write()
downloaded_file.write(response.content)
with open(filename, "r+b") as data_file:
content = data_file.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment