stranck-dev in drew-dev #17
5
app.py
5
app.py
|
@ -199,7 +199,10 @@ if __name__ == "__main__":
|
|||
res = requests.get(base_url_event, headers=headers)
|
||||
res = res.json()
|
||||
if(res['slug'] == EVENT_NAME):
|
||||
break
|
||||
print("Healtchecking...", file=sys.stderr)
|
||||
res = requests.get(join(domain, "healthcheck"), headers=headers)
|
||||
if(res.status_code == 200):
|
||||
break
|
||||
except:
|
||||
pass
|
||||
sleep(5)
|
||||
|
|
|
@ -7,7 +7,8 @@ EVENT_NAME = 'overlord'
|
|||
HOSTNAME = 'reg.furizon.net'
|
||||
|
||||
headers = {'Host': HOSTNAME, 'Authorization': f'Token {API_TOKEN}'}
|
||||
base_url = "http://urlllllllllllllllllllll/api/v1/"
|
||||
domain = "http://urlllllllllllllllllllll/"
|
||||
base_url = "{domain}api/v1/"
|
||||
base_url_event = f"{base_url}organizers/{ORGANIZER}/events/{EVENT_NAME}/"
|
||||
|
||||
PROPIC_DEADLINE = 9999999999
|
||||
|
|
Loading…
Reference in New Issue