mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update invokeai/app/services/model_records/model_records_sql.py
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
parent
3b363d0258
commit
9316534d97
@ -261,7 +261,7 @@ class ModelRecordServiceSQL(ModelRecordServiceBase):
|
|||||||
required fields, or a ModelConfigBase instance.
|
required fields, or a ModelConfigBase instance.
|
||||||
"""
|
"""
|
||||||
record = ModelConfigFactory.make_config(config, key=key) # ensure it is a valid config obect
|
record = ModelConfigFactory.make_config(config, key=key) # ensure it is a valid config obect
|
||||||
json_serialized = json.dumps(record.model_dump()) # and turn it into a json string.
|
json_serialized = record.model_dump_json() # and turn it into a json string.
|
||||||
with self._db.lock:
|
with self._db.lock:
|
||||||
try:
|
try:
|
||||||
self._cursor.execute(
|
self._cursor.execute(
|
||||||
|
Loading…
Reference in New Issue
Block a user