B"H use list instead of tuple for key function readability
This commit is contained in:
parent
87344967c2
commit
e9c1fa1587
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ MAX_SEARCH_RESULTS = 100
|
|||
|
||||
ref_sort_key = lambda ref: ref.name
|
||||
|
||||
string_nums_nocase_sort_key = lambda s: tuple((int(i) if i.isdigit() else i.lower()) for i in re.split(r'(\d+)', s))
|
||||
string_nums_nocase_sort_key = lambda s: [(int(i) if i.isdigit() else i.lower()) for i in re.split(r'(\d+)', s)]
|
||||
|
||||
class SubsonicApi():
|
||||
def __init__(self, url, username, password, legacy_auth):
|
||||
|
|
Loading…
Add table
Reference in a new issue