Просмотр исходного кода

Util - duplicates: don't report matches with the same config.

Was matching vs the raw input, so when that included extension or path
it was not an exact match and got reported as a duplicate.
Instead compare config type against config type to avoid that.
Jason Rumney 1 год назад
Родитель
Сommit
46d66ef58c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      util/duplicates.py

+ 1 - 1
util/duplicates.py

@@ -17,7 +17,7 @@ def main():
 
         # device = FakeDevice(sample_dps)
         for m in possible_matches(sample_dps):
-            if m.config_type == filename:
+            if m.config_type == config.config_type:
                 continue
             if m.match_quality(sample_dps) > 50:
                 print(