mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
hero version is smaller than standard version
This commit is contained in:
parent
74d039feb9
commit
dc5c55bb1a
1 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ class VersionItem:
|
|||
other_version = abs(other.version)
|
||||
# Hero version is greater than non-hero
|
||||
if version == other_version:
|
||||
return self.is_hero
|
||||
return not self.is_hero
|
||||
return version > other_version
|
||||
|
||||
def __lt__(self, other):
|
||||
|
|
@ -188,7 +188,7 @@ class VersionItem:
|
|||
other_version = abs(other.version)
|
||||
# Non-hero version is lesser than hero
|
||||
if version == other_version:
|
||||
return not self.is_hero
|
||||
return self.is_hero
|
||||
return version < other_version
|
||||
|
||||
def __ge__(self, other):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue