Skip to content

Commit d01f5d3

Browse files
committed
Fix duplicate entries in index.py
1 parent 64a09f8 commit d01f5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlc/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def add(self, meta, folder_type, path, repo):
9191

9292
index = self.get_index(folder_type, unique_id)
9393

94-
if index != -1:
94+
if index == -1:
9595
self.indices[folder_type].append({
9696
"uid": unique_id,
9797
"tags": tags,

0 commit comments

Comments
 (0)