diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2023-11-18 07:21:09 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2023-11-18 07:21:09 -0500 |
| commit | ee88d4f02fe4f5e3d8233db5770b4a859c7a2d6d (patch) | |
| tree | 9a43ddd7e5bda0c6f83d0febc7c58049444dbcc4 | |
| parent | c5cd1a5d6a7f1da14d391b3c57955e223c913808 (diff) | |
le cheese
| -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> |
