Skip to content

Commit

Permalink
fix fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alexviquez committed Mar 2, 2022
1 parent 9648e18 commit f1d03e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mati/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def address(self):
"""
This property fills the address direct from the ocr fields `address`
"""
if 'address' in self.fields:
if self.fields and 'address' in self.fields:
return self.fields['address']['value']
else:
return None
Expand All @@ -85,7 +85,7 @@ def full_name(self):
"""
This property fills the fullname direct from the ocr fields `full_name`
"""
if 'full_name' in self.fields:
if self.fields and 'full_name' in self.fields:
return self.fields['full_name']['value']
else:
return None
Expand Down
2 changes: 1 addition & 1 deletion mati/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.2.dev8' # pragma: no cover
__version__ = '0.3.2.dev9' # pragma: no cover

0 comments on commit f1d03e8

Please sign in to comment.