From 1eae0313a02c81e4c9b4bbdea7391bfe11e8b8b6 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 17 Aug 2023 13:02:47 +1000 Subject: [PATCH] main: Fixed typo --- master/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/main.py b/master/main.py index 135fb45..3951fb2 100644 --- a/master/main.py +++ b/master/main.py @@ -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})