summaryrefslogtreecommitdiff
path: root/src/backend/syncdb.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-09 20:10:34 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-09 20:10:34 +0000
commitec7deec5b851d582f7ada4803033d5044673ecf3 (patch)
treee1cfb169c7544a9ed27bcfc296160beda1a808c0 /src/backend/syncdb.py
parent3734eb8c40f2481b023fbbe741f646a5087e50e5 (diff)
remoteTable -> rmt_tbl; localTable -> lcl_tbl; remoteCSV -> rmt_csv; localCSV -> lcl_csv
Diffstat (limited to 'src/backend/syncdb.py')
-rw-r--r--src/backend/syncdb.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/syncdb.py b/src/backend/syncdb.py
index 308ca8a..b942a12 100644
--- a/src/backend/syncdb.py
+++ b/src/backend/syncdb.py
@@ -9,7 +9,7 @@ import sisyphus.getenv
import sisyphus.getfs
-def remoteCSV():
+def rmt_csv():
pcsv_addr, dcsv_addr = sisyphus.getenv.csv_addr()
http = urllib3.PoolManager()
@@ -20,12 +20,12 @@ def remoteCSV():
shutil.copyfileobj(tmp_buffer, output_file)
-def localCSV():
+def lcl_csv():
subprocess.call(['/usr/share/sisyphus/helpers/make_local_csv'])
-def remoteTable():
- remoteCSV()
+def rmt_tbl():
+ rmt_csv()
sisyphusdb = sqlite3.connect(sisyphus.getfs.lcl_db)
sisyphusdb.cursor().execute('''drop table if exists remote_packages''')
@@ -49,8 +49,8 @@ def remoteTable():
sisyphusdb.close()
-def localTable():
- localCSV()
+def lcl_tbl():
+ lcl_csv()
sisyphusdb = sqlite3.connect(sisyphus.getfs.lcl_db)
sisyphusdb.cursor().execute('''drop table if exists local_packages''')