main: Fixed typo
All checks were successful
Build Docker / Build Bot (push) Successful in 27s
Build Docker / Build Master (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2023-08-17 13:02:47 +10:00
parent d2999f50f8
commit 1eae0313a0
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -161,7 +161,7 @@ def list_workers():
online=False
worker_list.append({'worker': worker.split(':')[0],'ip': worker.split(':')[1].strip('\n'), 'online': online, 'sites': 0, 'ready': 0})
continue
sites = resp.json()['sites']
sites = resp.json()['num_sites']
worker_list.append({'worker': worker.split(':')[0],'ip': worker.split(':')[1].strip('\n'), 'online': online, 'sites': sites, 'ready': 1})
return jsonify({'success': 'true', 'workers': worker_list})