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})