def location_metric(ipaddr): location = db.get_location(ipaddr) return render_template('location.html', location=location)