Ver código fonte

Fix unrecognised repeated keys getting reported as unrepeatable

master
JustAnotherArchivist 9 meses atrás
pai
commit
a839834050
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      codearchiver/core.py

+ 1
- 1
codearchiver/core.py Ver arquivo

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


Carregando…
Cancelar
Salvar