mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 09:30:31 +00:00
Remove the queue stuff for CalibreDB (is no longer used)
This commit is contained in:
parent
508f49df18
commit
0f28dc5e55
16
cps/db.py
16
cps/db.py
@ -338,25 +338,9 @@ class CalibreDB(threading.Thread):
|
||||
threading.Thread.__init__(self)
|
||||
self.engine = None
|
||||
self.session = None
|
||||
self.queue = None
|
||||
self.log = None
|
||||
self.config = None
|
||||
|
||||
def add_queue(self,queue):
|
||||
self.queue = queue
|
||||
self.log = logger.create()
|
||||
|
||||
def run(self):
|
||||
while False:
|
||||
i = self.queue.get()
|
||||
if i == 'dummy':
|
||||
self.queue.task_done()
|
||||
break
|
||||
self.queue.task_done()
|
||||
|
||||
def stop(self):
|
||||
self.queue.put('dummy')
|
||||
|
||||
def setup_db(self, config, app_db_path):
|
||||
self.config = config
|
||||
self.dispose()
|
||||
|
Loading…
Reference in New Issue
Block a user