mirror of
https://gitlab.com/datalifeit/python-retrofix
synced 2023-12-14 06:13:03 +01:00
Fix boolean dictionary items
This commit is contained in:
parent
4a169fe696
commit
c9dbe9be83
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ class Boolean(Field):
|
|||
self._formatting = formatting
|
||||
|
||||
def set_from_file(self, value):
|
||||
for key, text in self._formatting:
|
||||
for key, text in self._formatting.items():
|
||||
if value == text:
|
||||
return key
|
||||
raise RetrofixException('Invalid value "%s" for boolean field "%s"' % (
|
||||
|
|
Loading…
Reference in a new issue