Browse Source

Fix unrecognised repeated keys getting reported as unrepeatable

master
JustAnotherArchivist 9 months ago
parent
commit
a839834050
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      codearchiver/core.py

+ 1
- 1
codearchiver/core.py View 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:


Loading…
Cancel
Save