Commit c18a7a0b by Karsa Zoltán István

status setup

parent 69d6fc05
......@@ -42,4 +42,4 @@ def proxy_datacenters(
else:
obj["datacenter"] = server
response = ORJSONResponse(obj, status_code=t_resp.status_code)
return response
\ No newline at end of file
return response
......@@ -8,14 +8,12 @@ from core.auth import hash_pass
from fastapi import HTTPException
import random
def get_status(datacenter_url: str):
resp = requests.request(
method="GET",
url=datacenter_url,
verify=False
)
resp = requests.request(method="GET", url=datacenter_url, verify=False)
return int(resp.status_code / 100) == 2
r = redis.Redis(host="localhost", port=6379, db=0, decode_responses=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment