Final refactor

This commit is contained in:
BarsTiger
2022-02-06 16:57:10 +02:00
parent be4c49ecf3
commit 46b5329318
7 changed files with 15 additions and 14 deletions

View File

@@ -17,6 +17,7 @@ def install(package):
r = requests.get(f"{horsy_vars.protocol}{horsy_vars.server_url}/packages/json/{package}").text
if r == "":
run_threaded(popup("Installation", f"Package {package} not found"))
print(r)
return f"Package {package} not found"
try:
r = json.loads(r)

View File

@@ -7,8 +7,8 @@ import json
from rich import print
client = SearchClient.create(
requests.get('https://raw.githubusercontent.com/BarsTiger/horsy/master/web_vars/search_app').json()['APP_ID'],
requests.get('https://raw.githubusercontent.com/BarsTiger/horsy/master/web_vars/search_app').json()['API_KEY'])
requests.get('https://raw.githubusercontent.com/horsy-ml/horsy/master/web_vars/search_app').json()['APP_ID'],
requests.get('https://raw.githubusercontent.com/horsy-ml/horsy/master/web_vars/search_app').json()['API_KEY'])
index = client.init_index('packages')