def getDistance(): fromTs = request.query.from_ts toTs = request.query.to_ts logging.debug("Filtering values for range %s -> %s" % (fromTs, toTs)) distances = distance.get_evening_commute_distance_pie( datetime.fromtimestamp(float(fromTs)/1000), datetime.fromtimestamp(float(toTs)/1000)) # logging.debug("Returning distances = %s" % distances) return distances
def getDistance(): fromTs = request.query.from_ts toTs = request.query.to_ts logging.debug("Filtering values for range %s -> %s" % (fromTs, toTs)) distances = distance.get_evening_commute_distance_pie( datetime.fromtimestamp(float(fromTs)/1000), datetime.fromtimestamp(float(toTs)/1000)) # logging.debug("Returning distances = %s" % distances) return distances