Skip to content

Commit

Permalink
Merge pull request #251 from enen92/master
Browse files Browse the repository at this point in the history
Simplify and fix condition for addon versions
  • Loading branch information
Lunatixz authored Feb 25, 2021
2 parents 9e0c856 + 7c4f607 commit 6d490f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kodi_addon_checker/check_addon_branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def _check_version_higher(report: Report, addon_details, branch, repo_addons_ver
addon_name = addon_details.get('name')
addon_version = addon_details.get('version')

if AddonVersion(addon_version) < AddonVersion(repo_addons_version) or \
(AddonVersion(addon_version) == AddonVersion(repo_addons_version) and pr):
if AddonVersion(addon_version) <= AddonVersion(repo_addons_version) and pr:
report.add(
Record(
PROBLEM,
Expand Down

0 comments on commit 6d490f8

Please sign in to comment.