Spaces:
Runtime error
Runtime error
Fix modelID matching issue
Browse files- background_task.py +3 -1
background_task.py
CHANGED
@@ -142,7 +142,9 @@ class Matchmaking:
|
|
142 |
indexes = []
|
143 |
closest_diffs = [9999999] * n
|
144 |
for i, m in enumerate(self.queue):
|
145 |
-
|
|
|
|
|
146 |
continue
|
147 |
diff = abs(m.elo - model.elo)
|
148 |
if diff < max(closest_diffs):
|
|
|
142 |
indexes = []
|
143 |
closest_diffs = [9999999] * n
|
144 |
for i, m in enumerate(self.queue):
|
145 |
+
modelid1 = model.author + "/" + model.name
|
146 |
+
modelid2 = m.author + "/" + m.name
|
147 |
+
if modelid1 == modelid2:
|
148 |
continue
|
149 |
diff = abs(m.elo - model.elo)
|
150 |
if diff < max(closest_diffs):
|