summaryrefslogtreecommitdiff
path: root/src/backend/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/database.py')
-rw-r--r--src/backend/database.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/database.py b/src/backend/database.py
index 9eb3bf5..e2ad380 100644
--- a/src/backend/database.py
+++ b/src/backend/database.py
@@ -9,13 +9,13 @@ import sisyphus.csvfiles
import sisyphus.filesystem
def getRemote():
- remotePackagesCsvURL,remoteDescriptionsCsvURL = sisyphus.csvfiles.getURL()
+ isPackageCsv,isDescriptionCsv = sisyphus.csvfiles.start()
http = urllib3.PoolManager()
- with http.request('GET', remotePackagesCsvURL, preload_content=False) as tmp_buffer, open(sisyphus.filesystem.remotePackagesCsv, 'wb') as output_file:
+ with http.request('GET', isPackageCsv, preload_content=False) as tmp_buffer, open(sisyphus.filesystem.remotePackagesCsv, 'wb') as output_file:
shutil.copyfileobj(tmp_buffer, output_file)
- with http.request('GET', remoteDescriptionsCsvURL, preload_content=False) as tmp_buffer, open(sisyphus.filesystem.remoteDescriptionsCsv, 'wb') as output_file:
+ with http.request('GET', isDescriptionCsv, preload_content=False) as tmp_buffer, open(sisyphus.filesystem.remoteDescriptionsCsv, 'wb') as output_file:
shutil.copyfileobj(tmp_buffer, output_file)
def makeLocal():