Skip to content

Commit

Permalink
fix: strip() orig name for TI on model reference load
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 3, 2023
1 parent 96a6ea1 commit 39bb61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hordelib/model_manager/ti.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def load_model_database(self) -> None:
for ti in self.model_reference.values():
self._index_ids[ti["id"]] = ti["name"].lower()
orig_name = ti.get("orig_name", ti["name"]).lower()
self._index_orig_names[orig_name] = ti["name"].lower()
self._index_orig_names[orig_name] = ti["name"].lower().strip()

logger.info("Loaded model reference from disk.")
except json.JSONDecodeError:
Expand Down

0 comments on commit 39bb61d

Please sign in to comment.