main: Fixed error from extra lines in worker file
All checks were successful
Build Docker / Build Bot (push) Successful in 21s
Build Docker / Build Master (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-24 14:09:25 +10:00
parent 136066df5c
commit e1aa30058e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -65,6 +65,9 @@ def new_site():
# Get a worker that has available slots
worker = None
for line in workers:
if not line.__contains__(':'):
continue
ip = line.split(':')[1].strip('\n')
resp=requests.get("http://"+ip + ":5000/status",timeout=2)
if (resp.status_code == 200):