fix +ve max versions being marked as disabled

This commit is contained in:
Damien Elmes 2020-01-27 16:58:12 +10:00
parent 9933720994
commit 45e8a9a364

View File

@ -116,7 +116,7 @@ class AddonMeta:
if min is not None and current_point_version < min:
return False
max = self.max_point_version
if max is not None and current_point_version > max:
if max is not None and max < 0 and current_point_version > abs(max):
return False
return True