diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 14:05:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 14:05:06 +0100 |
commit | cc6bdb0e4844ba2eb02688f85368c5c949cf0e62 (patch) | |
tree | f47bc2837bf1c7383193bda32c56718c3fe3a9c6 /src/backend/syncDatabase.py | |
parent | db3be7eb3ec5096e279e49bd87dd61c250635735 (diff) |
fix variables in syncDatabase
Diffstat (limited to 'src/backend/syncDatabase.py')
-rw-r--r-- | src/backend/syncDatabase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/syncDatabase.py b/src/backend/syncDatabase.py index e70a75c..1823847 100644 --- a/src/backend/syncDatabase.py +++ b/src/backend/syncDatabase.py @@ -9,13 +9,13 @@ import sisyphus.getEnvironment import sisyphus.getFilesystem def remoteCSV(): - packagesCsvURL,descriptionCsvURL = sisyphus.getEnvironment.csvURL() + packagesCsvURL,descriptionsCsvURL = sisyphus.getEnvironment.csvURL() http = urllib3.PoolManager() - with http.request('GET', isPackageCsv, preload_content=False) as tmp_buffer, open(sisyphus.getFilesystem.remotePackagesCsv, 'wb') as output_file: + with http.request('GET', packagesCsvURL, preload_content=False) as tmp_buffer, open(sisyphus.getFilesystem.remotePackagesCsv, 'wb') as output_file: shutil.copyfileobj(tmp_buffer, output_file) - with http.request('GET', isDescriptionCsv, preload_content=False) as tmp_buffer, open(sisyphus.getFilesystem.remoteDescriptionsCsv, 'wb') as output_file: + with http.request('GET', descriptionsCsvURL, preload_content=False) as tmp_buffer, open(sisyphus.getFilesystem.remoteDescriptionsCsv, 'wb') as output_file: shutil.copyfileobj(tmp_buffer, output_file) def localCSV(): |