From 1f316e3a94e6d0da03e765334a2a7525933d84eb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 17 Aug 2023 13:12:51 +1000 Subject: [PATCH] worker: Fix wp command --- worker/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/main.py b/worker/main.py index 9f8ebd7..9dc6ae1 100644 --- a/worker/main.py +++ b/worker/main.py @@ -22,10 +22,11 @@ def new_site(): # Add site to file sites_file = open('sites.txt', 'a') sites_file.write(domain + '\n') + sites_file.close() # Setup site run wp.sh # Get num sites - os.system('bash wp.sh ' + domain + ' '+ count) + os.system('bash wp.sh ' + domain + ' '+ str(count)) # Return the domain and the number of sites return jsonify({'domain': domain, 'count': count})