Last active
May 7, 2016 01:54
-
-
Save nfarah86/d40f6f3480e0201ecdcfbad9caf7e6ba to your computer and use it in GitHub Desktop.
Get User's GPS Location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// omitted code | |
@app.route("/contact_map_display/<user_id>", methods = ['GET']) | |
def contact_map_display(): | |
user_object = db_session.query(GPS_Location).filter_by(user_id=user_id).order_by(GPS_Location.created.desc()).first() | |
return render_template("contact_map.html", user_id = user_object.user_id) | |
// omitted code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment