mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove queue
This commit is contained in:
parent
19d2c9ec1c
commit
711d415335
@ -10,8 +10,7 @@ Users = Users
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# pylint: disable=unused-import
|
# pylint: disable=unused-import
|
||||||
from peewee import fn
|
from peewee import SqliteDatabase, fn
|
||||||
from playhouse.sqliteq import SqliteQueueDatabase
|
|
||||||
from playhouse.shortcuts import model_to_dict
|
from playhouse.shortcuts import model_to_dict
|
||||||
|
|
||||||
except ModuleNotFoundError as err:
|
except ModuleNotFoundError as err:
|
||||||
@ -20,7 +19,7 @@ except ModuleNotFoundError as err:
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
peewee_logger = logging.getLogger("peewee")
|
peewee_logger = logging.getLogger("peewee")
|
||||||
peewee_logger.setLevel(logging.INFO)
|
peewee_logger.setLevel(logging.INFO)
|
||||||
database = SqliteQueueDatabase(
|
database = SqliteDatabase(
|
||||||
helper.db_path
|
helper.db_path
|
||||||
# This is commented out after presenting issues when
|
# This is commented out after presenting issues when
|
||||||
# moving from SQLiteDatabase to SqliteQueueDatabase
|
# moving from SQLiteDatabase to SqliteQueueDatabase
|
||||||
|
Loading…
Reference in New Issue
Block a user