Refactor model response inclusion to only include groups with multiple models; update model removal logic to accept hash value. See #221

This commit is contained in:
Will Miao
2025-06-11 19:52:44 +08:00
parent e0d9880b32
commit eb01ad3af9
6 changed files with 48 additions and 25 deletions

View File

@@ -1342,7 +1342,7 @@ class ModelScanner:
hash_val = model.get('sha256', '').lower()
# Remove from hash index
self._hash_index.remove_by_path(file_path)
self._hash_index.remove_by_path(file_path, hash_val)
# Check and clean up duplicates
self._cleanup_duplicates_after_removal(hash_val, file_name)