From 2cd66acd8ccd81fbdc5e0d8ed71ef28e9c0ad1a7 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Mon, 13 Nov 2023 13:16:34 -0500 Subject: fixed misnamed target name property --- .../__pycache__/datastructs.cpython-311.pyc | Bin 7348 -> 7348 bytes dashboard_website/__pycache__/db.cpython-311.pyc | Bin 8538 -> 11189 bytes .../__pycache__/router.cpython-311.pyc | Bin 18525 -> 18525 bytes dashboard_website/dashboard.py | 3 --- dashboard_website/db.py | 2 +- dashboard_website/static/js/dashboard.js | 2 +- 6 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dashboard_website/__pycache__/datastructs.cpython-311.pyc b/dashboard_website/__pycache__/datastructs.cpython-311.pyc index 6eb883a..43fc8d9 100644 Binary files a/dashboard_website/__pycache__/datastructs.cpython-311.pyc and b/dashboard_website/__pycache__/datastructs.cpython-311.pyc differ diff --git a/dashboard_website/__pycache__/db.cpython-311.pyc b/dashboard_website/__pycache__/db.cpython-311.pyc index e463978..48ee159 100644 Binary files a/dashboard_website/__pycache__/db.cpython-311.pyc and b/dashboard_website/__pycache__/db.cpython-311.pyc differ diff --git a/dashboard_website/__pycache__/router.cpython-311.pyc b/dashboard_website/__pycache__/router.cpython-311.pyc index 7cbbd01..1e21e0e 100644 Binary files a/dashboard_website/__pycache__/router.cpython-311.pyc and b/dashboard_website/__pycache__/router.cpython-311.pyc differ diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py index 78fb355..06af267 100644 --- a/dashboard_website/dashboard.py +++ b/dashboard_website/dashboard.py @@ -229,7 +229,4 @@ if __name__ == "__main__": app.config['SESSION_TYPE'] = 'filesystem' app.secret_key = 'hf8f3sd0zmqpmhss7dr3' - # local test app.run(host="127.0.0.1", port=5001, debug=True) - # production - #app.run(host="96.126.106.128", port=5001, debug=True) diff --git a/dashboard_website/db.py b/dashboard_website/db.py index 5f09f47..d4b0186 100644 --- a/dashboard_website/db.py +++ b/dashboard_website/db.py @@ -83,7 +83,7 @@ def getBikeCluePair(team_name): if bike.name == team_name: b = bike for clue in clues: - if clue.name == b.target: + if clue.name == b.target_name: c = clue break break diff --git a/dashboard_website/static/js/dashboard.js b/dashboard_website/static/js/dashboard.js index 647c241..fba7196 100644 --- a/dashboard_website/static/js/dashboard.js +++ b/dashboard_website/static/js/dashboard.js @@ -201,7 +201,7 @@ function requestLatestInfo(){ updateClueStats(); } - document.getElementById("routeinfo").innerText = json['calculating_routes'] ? "ROUTE INFO | (Calculating...)" : "ROUTE INFO"; + document.getElementById("routeinfo").innerHTML = json['calculating_routes'] ? "ROUTE INFO | (Calculating...)" : "ROUTE INFO"; } fetch(host+'/getLatestInfo', { method: "POST", -- cgit v1.2.3