Przeglądaj źródła

Fix unrecognised repeated keys getting reported as unrepeatable

master
JustAnotherArchivist 9 miesięcy temu
rodzic
commit
a839834050
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      codearchiver/core.py

+ 1
- 1
codearchiver/core.py Wyświetl plik

@@ -140,7 +140,7 @@ class Metadata(list[tuple[str, str]]):

repeatableKeys = set(field.key for field in self._allFields if field.repeatable)
repeatedKeys = set(key for key, count in keyCounts.items() if count > 1)
repeatedUnrepeatableKeys = repeatedKeys - repeatableKeys
repeatedUnrepeatableKeys = repeatedKeys - repeatableKeys - unrecognisedKeys

errors = []
if unrecognisedKeys:


Ładowanie…
Anuluj
Zapisz