diff options
Diffstat (limited to 'dashboard_website')
| -rw-r--r-- | dashboard_website/dashboard.py | 2 | ||||
| -rw-r--r-- | dashboard_website/templates/controls.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py index 7d0d920..0fe3ece 100644 --- a/dashboard_website/dashboard.py +++ b/dashboard_website/dashboard.py @@ -250,7 +250,7 @@ def siteControls(): if db.loadDirty("dirt.csv") != 0: return jsonify({"status" : "ERROR"}) return jsonify({"status" : "OK"}) - elif cmd == "loadClean": + elif cmd == "loadSave": dirty_csv = request.files['cleanfile'] dirty_csv.save("clean.csv") if db.load("clean.csv") != 0: diff --git a/dashboard_website/templates/controls.html b/dashboard_website/templates/controls.html index 2ad3adc..253e6c7 100644 --- a/dashboard_website/templates/controls.html +++ b/dashboard_website/templates/controls.html @@ -19,7 +19,7 @@ <form id="clean" name="clean"> <label for="cleanfile">Choose save file to upload (will overwrite)</label> <input id="cleanfile" name="cleanfile" type="file" accept=".csv,.CSV" /> - <button type="button" onclick="loadClean()">Upload</button> + <button type="button" onclick="loadSave()">Upload</button> </form> </body> |
