Explorar el Código

Fix unrecognised repeated keys getting reported as unrepeatable

master
JustAnotherArchivist hace 9 meses
padre
commit
a839834050
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      codearchiver/core.py

+ 1
- 1
codearchiver/core.py Ver fichero

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


Cargando…
Cancelar
Guardar