From 740c3f998279d4ae74b13f03f95d2b5ee215e06c Mon Sep 17 00:00:00 2001 From: Dat Nguyen Date: Thu, 21 Nov 2019 15:38:00 -0600 Subject: Update Server.py --- Web/Server/Server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Web') diff --git a/Web/Server/Server.py b/Web/Server/Server.py index ce695fb..3e93d00 100644 --- a/Web/Server/Server.py +++ b/Web/Server/Server.py @@ -16,6 +16,9 @@ ALLOWED_EXTENSIONS = set(['py']) PI_URL = 'http://localhost:8000' +# UNCOMMENT IF RUNNING PI.PY ON PI +#PI_URL = 'http://192.168.1.10:8000' + RESULTS_DESTINATION = "Results/results.txt" def allowed_file(filename): @@ -45,7 +48,6 @@ def upload_file(): dictToSend = {'filename':file.filename, 'file_content':file.read()} file.close print('Running test') - flash('Running test') response = requests.post(PI_URL + '/tests/endpoint', json=dictToSend) results_filename = json.loads(response.text)[u'results_filename'] -- cgit v1.2.3