From 37e9e1001ef45d002f3bf7aa24a20b1bba328328 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Wed, 18 Mar 2026 23:35:40 +0100 Subject: [PATCH] Remove blanket DEFAULTS backfill from DB get_sequence Adding all DEFAULTS keys to API responses shifted output slot indices, breaking existing ComfyUI workflow links (tuple index out of range). Only lora migration remains on the DB read path. Co-Authored-By: Claude Opus 4.6 --- db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db.py b/db.py index 1f32f9c..9b14416 100644 --- a/db.py +++ b/db.py @@ -5,7 +5,7 @@ import time from pathlib import Path from typing import Any -from utils import load_json, DEFAULTS, KEY_BATCH_DATA, KEY_HISTORY_TREE +from utils import load_json, KEY_BATCH_DATA, KEY_HISTORY_TREE logger = logging.getLogger(__name__) @@ -232,8 +232,6 @@ class ProjectDB: if not row: return None data = json.loads(row["data"]) - for k, v in DEFAULTS.items(): - data.setdefault(k, v) return self._migrate_lora_keys(data) def list_sequences(self, data_file_id: int) -> list[int]: