mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-21 06:58:30 +03:00
Update api_helpers.py
Fix list to tuple
This commit is contained in:
@@ -10,9 +10,9 @@ from .conditional_ttl_cache import AsyncConditionalTTL
|
||||
|
||||
def list_to_tuple(function):
|
||||
def wrapper(*args):
|
||||
args = [tuple(x) if x is list else x for x in args]
|
||||
args = [tuple(x) if isinstance(x, list) else x for x in args]
|
||||
result = function(*args)
|
||||
result = tuple(result) if result is list else result
|
||||
result = tuple(result) if isinstance(result, list) else result
|
||||
return result
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user