summaryrefslogtreecommitdiff
path: root/dashboard_website/dashboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard_website/dashboard.py')
-rw-r--r--dashboard_website/dashboard.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py
index 6d4d1f7..9ccad9f 100644
--- a/dashboard_website/dashboard.py
+++ b/dashboard_website/dashboard.py
@@ -4,7 +4,7 @@
#
from flask import Flask, flash, request, redirect, render_template, send_from_directory, jsonify
-import db
+import db, router
app = Flask(__name__)
@@ -75,7 +75,9 @@ def requestRoute():
# "status" : "OK"/"ERROR XX" }
# ERROR CODES: 1 = missing fields, 2 = invalid field types, 3 = invalid coordinates, 10 = other/network error
def updateTeamLocation():
- pass
+ content = request.get_json()
+ db.pingBike(content['team_name'], content['latitude'], content['longitude'])
+ return jsonify({'team_name' : content['team_name'], 'status' : "OK"})
#
# WEB PAGES + DASHBOARD API