diff options
Diffstat (limited to 'scripts/common')
-rw-r--r-- | scripts/common/__init__.py | 1 | ||||
-rw-r--r-- | scripts/common/queue.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/scripts/common/__init__.py b/scripts/common/__init__.py index 89977d2..f6c02d3 100644 --- a/scripts/common/__init__.py +++ b/scripts/common/__init__.py @@ -3,7 +3,6 @@ import os - QUEUE = bool(os.environ.get('el_QUEUE', False)) # Initialize queue 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])) |