mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-06-12 12:47:37 +02:00
refactor: rewrite some endpoints to speed up execution
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import toml
|
||||
import tomllib as toml
|
||||
|
||||
def load_config() -> dict:
|
||||
"""Loads the config.toml file.
|
||||
@ -6,4 +6,7 @@ def load_config() -> dict:
|
||||
Returns:
|
||||
dict: the config.toml file as a dict
|
||||
"""
|
||||
return toml.load("config.toml")
|
||||
|
||||
with open('config.toml', 'rb') as config_file:
|
||||
return toml.load(config_file)
|
||||
|
||||
|
Reference in New Issue
Block a user