Skip to content

Commit

Permalink
Merge pull request #9 from axiacore/validator
Browse files Browse the repository at this point in the history
Tweaks
  • Loading branch information
felipe3dfx authored Jun 30, 2021
2 parents 2d99edb + 50c8734 commit 61ae312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ax3_model_extras/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class ImageMinDimensionValidator(BaseValidator):
def compare(self, a, b):
width, height = b
if width == 0:
return a.height <= height
return a.height < height

if height == 0:
return a.width <= width
return a.width < width

return a.width <= width or a.height <= height
return a.width < width or a.height < height


class MimetypeValidator(BaseValidator):
Expand Down

0 comments on commit 61ae312

Please sign in to comment.