Skip to content
Snippets Groups Projects
Commit 9c62890f authored by Carsten Hinz's avatar Carsten Hinz
Browse files

added output for request vs using already downloaded data

parent dac268e9
Branches
Tags
1 merge request!11Creation of first beta release version
......@@ -443,9 +443,12 @@ class AnalysisServiceDownload(AnalysisService):
needs_fresh_download = (not self.use_downloaded) or (not filename.is_file())
if needs_fresh_download:
print("Performing request to TOAR DB")
response = self.connection.get(query_options)
with open(filename, "w+b") as downloaded_file:
downloaded_file.write(response.content)
else:
print(f"Loading already downloaded data from {filename}")
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