Добавление патча сжатия png, обновление документации
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# Change api server of apk
|
||||
"""Change api server"""
|
||||
priority = 0
|
||||
from tqdm import tqdm
|
||||
|
||||
import json
|
||||
import requests
|
||||
@@ -6,6 +8,8 @@ import requests
|
||||
def apply(config: dict) -> bool:
|
||||
response = requests.get(config['server'])
|
||||
if response.status_code == 200:
|
||||
print(json.loads(response.text))
|
||||
for item in json.loads(response.text)["modding"]:
|
||||
tqdm.write(item)
|
||||
return True
|
||||
tqdm.write(f"Failed to fetch data {response.status_code} {response.text}")
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user