Skip to content

Commit 9316534

Browse files
Update invokeai/app/services/model_records/model_records_sql.py
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
1 parent 3b363d0 commit 9316534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

invokeai/app/services/model_records/model_records_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def update_model(self, key: str, config: Union[dict, ModelConfigBase]) -> ModelC
261261
required fields, or a ModelConfigBase instance.
262262
"""
263263
record = ModelConfigFactory.make_config(config, key=key) # ensure it is a valid config obect
264-
json_serialized = json.dumps(record.model_dump()) # and turn it into a json string.
264+
json_serialized = record.model_dump_json() # and turn it into a json string.
265265
with self._db.lock:
266266
try:
267267
self._cursor.execute(

0 commit comments

Comments
 (0)