aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/common/queue.py
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-02-01 20:59:42 +0100
committerDennis Eriksen <d@ennis.no>2023-02-01 20:59:42 +0100
commit7c403ecc8b6bd31f447eb91d73d95055489fbac4 (patch)
treef70a96871178c0d78be505cc71f090e4e91857ea /scripts/common/queue.py
parentmoving and renaming/breaking everything (diff)
downloadenergyscripts-7c403ecc8b6bd31f447eb91d73d95055489fbac4.tar.gz
fixing some lintingthings
Diffstat (limited to 'scripts/common/queue.py')
-rw-r--r--scripts/common/queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/common/queue.py b/scripts/common/queue.py
index e567fb4..cb90423 100644
--- a/scripts/common/queue.py
+++ b/scripts/common/queue.py
@@ -2,7 +2,6 @@
''' common functions and stuff '''
import os
-import sys
import pickle
from litequeue import SQLQueue
@@ -12,6 +11,7 @@ QUEUE_DB = os.environ.get('el_QUEUE_db', 'litequeue.db')
q = SQLQueue(QUEUE_DB, maxsize=None)
def dbi(sql,values,**kwargs):
+ ''' insert into queue '''
verbose = bool(kwargs['verbose']) if 'verbose' in kwargs else False
q.put(pickle.dumps([sql, values]))