mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
Revert change to PrefsVersion.stringSerial argument name
It's a 'published' interface in that importing PrefsVersion is documented in PLUGINS.md, even if use of this specific function isn't.
This commit is contained in:
parent
29461dd6e3
commit
8af5424f9d
8
prefs.py
8
prefs.py
@ -60,17 +60,17 @@ class PrefsVersion:
|
||||
def __init__(self):
|
||||
return
|
||||
|
||||
def stringToSerial(self, version_str: str) -> int: # noqa: N802 # used in plugins
|
||||
def stringToSerial(self, versionStr: str) -> int: # noqa: N802, N803 # used in plugins
|
||||
"""
|
||||
Convert a version string into a preferences version serial number.
|
||||
|
||||
If the version string isn't known returns the 'current' (latest) serial number.
|
||||
|
||||
:param version_str:
|
||||
:param versionStr:
|
||||
:return int:
|
||||
"""
|
||||
if version_str in self.versions:
|
||||
return self.versions[version_str]
|
||||
if versionStr in self.versions:
|
||||
return self.versions[versionStr]
|
||||
|
||||
return self.versions['current']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user