summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2023-11-13 13:16:34 -0500
committerAnson Bridges <bridges.anson@gmail.com>2023-11-13 13:16:34 -0500
commit2cd66acd8ccd81fbdc5e0d8ed71ef28e9c0ad1a7 (patch)
tree6b080fb485328736c7bf7da59846875741c621ec
parent9b621eb842d43f9403c063ba1e0fbeee5ff74d74 (diff)
fixed misnamed target name property
-rw-r--r--dashboard_website/__pycache__/datastructs.cpython-311.pycbin7348 -> 7348 bytes
-rw-r--r--dashboard_website/__pycache__/db.cpython-311.pycbin8538 -> 11189 bytes
-rw-r--r--dashboard_website/__pycache__/router.cpython-311.pycbin18525 -> 18525 bytes
-rw-r--r--dashboard_website/dashboard.py3
-rw-r--r--dashboard_website/db.py2
-rw-r--r--dashboard_website/static/js/dashboard.js2
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
--- a/dashboard_website/__pycache__/datastructs.cpython-311.pyc
+++ b/dashboard_website/__pycache__/datastructs.cpython-311.pyc
Binary files differ
diff --git a/dashboard_website/__pycache__/db.cpython-311.pyc b/dashboard_website/__pycache__/db.cpython-311.pyc
index e463978..48ee159 100644
--- a/dashboard_website/__pycache__/db.cpython-311.pyc
+++ b/dashboard_website/__pycache__/db.cpython-311.pyc
Binary files differ
diff --git a/dashboard_website/__pycache__/router.cpython-311.pyc b/dashboard_website/__pycache__/router.cpython-311.pyc
index 7cbbd01..1e21e0e 100644
--- a/dashboard_website/__pycache__/router.cpython-311.pyc
+++ b/dashboard_website/__pycache__/router.cpython-311.pyc
Binary files 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 | <span style='color:orange'>(Calculating...)</span>" : "ROUTE INFO";
}
fetch(host+'/getLatestInfo', {
method: "POST",