def getCommuteModeShare(zc): fromTs = request.query.from_ts toTs = request.query.to_ts logging.debug("Filtering values for range %s -> %s" % (fromTs, toTs)) return zipcode.get_mode_share_by_Zipcode( zc, "commute", datetime.fromtimestamp(float(fromTs) / 1000), datetime.fromtimestamp(float(toTs) / 1000))
def getCommuteModeShare(zc): fromTs = request.query.from_ts toTs = request.query.to_ts logging.debug("Filtering values for range %s -> %s" % (fromTs, toTs)) return zipcode.get_mode_share_by_Zipcode( zc, "commute", datetime.fromtimestamp(float(fromTs) / 1000), datetime.fromtimestamp(float(toTs) / 1000) )