Sfoglia il codice sorgente

Fix unrecognised repeated keys getting reported as unrepeatable

master
JustAnotherArchivist 9 mesi fa
parent
commit
a839834050
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      codearchiver/core.py

+ 1
- 1
codearchiver/core.py Vedi File

@@ -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:


Caricamento…
Annulla
Salva