diff options
author | Dat Nguyen <nguy2854@umn.edu> | 2019-11-21 15:38:00 -0600 |
---|---|---|
committer | Dat Nguyen <nguy2854@umn.edu> | 2019-11-21 15:38:00 -0600 |
commit | 740c3f998279d4ae74b13f03f95d2b5ee215e06c (patch) | |
tree | e0a38414cbbb657534daab7a9c9ccbc3c273b9e2 | |
parent | a bunch of placeholder files (diff) | |
download | ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar.gz ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar.bz2 ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar.lz ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar.xz ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.tar.zst ee4511w-740c3f998279d4ae74b13f03f95d2b5ee215e06c.zip |
Update Server.py
Diffstat (limited to '')
-rw-r--r-- | Web/Server/Server.py | 4 |
1 files changed, 3 insertions, 1 deletions
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'] |