mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
Change atleast_version to return 1 or 0
This commit is contained in:
parent
d61ccd4275
commit
32af57e2c9
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ class TrezorClientBase(GuiMixin, PrintError):
|
||||||
return (f.major_version, f.minor_version, f.patch_version)
|
return (f.major_version, f.minor_version, f.patch_version)
|
||||||
|
|
||||||
def atleast_version(self, major, minor=0, patch=0):
|
def atleast_version(self, major, minor=0, patch=0):
|
||||||
return cmp(self.firmware_version(), (major, minor, patch))
|
return cmp(self.firmware_version(), (major, minor, patch)) >= 0
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def wrapper(func):
|
def wrapper(func):
|
||||||
|
|
Loading…
Add table
Reference in a new issue