mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 14:14:29 +02:00
9 lines
232 B
Python
9 lines
232 B
Python
from cytoolz import keyfilter
|
|
from config import api_versions
|
|
|
|
|
|
def get_version(value: str) -> str:
|
|
result = keyfilter(lambda key: value in api_versions[key], api_versions)
|
|
|
|
return list(result.keys())[0] if result else "v0"
|