diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 20:02:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 20:02:58 +0000 |
commit | 206c993e45c39e60eceae1f66c69d39903ab9266 (patch) | |
tree | 96e15cacf4f5ad804fb97f0fb37584c6d064acfd /src/backend/syncdb.py | |
parent | 80d633d0738461d7715e5051ab7f3248068fa87e (diff) |
space functions a bit
Diffstat (limited to 'src/backend/syncdb.py')
-rw-r--r-- | src/backend/syncdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/syncdb.py b/src/backend/syncdb.py index b5d86ae..65812ac 100644 --- a/src/backend/syncdb.py +++ b/src/backend/syncdb.py @@ -8,6 +8,7 @@ import subprocess import sisyphus.getenv import sisyphus.getfs + def remoteCSV(): packagesCsvURL,descriptionsCsvURL = sisyphus.getenv.csvURL() http = urllib3.PoolManager() @@ -18,9 +19,11 @@ def remoteCSV(): with http.request('GET', descriptionsCsvURL, preload_content=False) as tmp_buffer, open(sisyphus.getfs.remoteDescriptionsCsv, 'wb') as output_file: shutil.copyfileobj(tmp_buffer, output_file) + def localCSV(): subprocess.call(['/usr/share/sisyphus/helpers/make_local_csv']) + def remoteTable(): remoteCSV() @@ -41,6 +44,7 @@ def remoteTable(): sisyphusdb.commit() sisyphusdb.close() + def localTable(): localCSV() |