Testing text2img command (will be replaced, only for tests); added exception handling, queue and database table with generated images
This commit is contained in:
@@ -8,5 +8,8 @@ if not os.path.isfile(DB):
|
||||
|
||||
db = {
|
||||
'config': DBDict(DB, autocommit=True, tablename='config'),
|
||||
'cooldown': DBDict(DB, autocommit=True, tablename='cooldown')
|
||||
'cooldown': DBDict(DB, autocommit=True, tablename='cooldown'),
|
||||
'exceptions': DBDict(DB, autocommit=True, tablename='exceptions'),
|
||||
'queue': DBDict(DB, autocommit=True, tablename='queue'),
|
||||
'generated': DBDict(DB, autocommit=True, tablename='generated')
|
||||
}
|
||||
|
||||
@@ -8,9 +8,12 @@ from .meta import DBMeta
|
||||
|
||||
|
||||
class DBTables:
|
||||
tables = ['config', 'cooldown']
|
||||
tables = ['config', 'cooldown', 'exceptions', 'queue', 'generated']
|
||||
config = "config"
|
||||
cooldown = "cooldown"
|
||||
exceptions = "exceptions"
|
||||
queue = "queue"
|
||||
generated = "generated"
|
||||
|
||||
|
||||
class DBDict(SqliteDict):
|
||||
|
||||
Reference in New Issue
Block a user