def _get_thermography(url, date): logging.info("%s %s" % (url, date)) from thermography.models import ThermographyPointDaily _thermographies = ThermographyPointDaily.gql( "WHERE url=:url AND date=:date", url=url.rstrip('/'), date=date).fetch(1) logging.info(_thermographies) return _thermographies[0] if _thermographies else None
def _get_thermography(url, date): logging.info("%s %s" % (url, date)) from thermography.models import ThermographyPointDaily _thermographies = ThermographyPointDaily.gql("WHERE url=:url AND date=:date", url=url.rstrip("/"), date=date).fetch( 1 ) logging.info(_thermographies) return _thermographies[0] if _thermographies else None
def _get_site_page(url): from thermography.models import ThermographyPointDaily _thermographies = ThermographyPointDaily.gql("url =", url.rstrip('/')).fetch(1) return _thermographies[0] if _thermographies else None
def _get_site_page(url): from thermography.models import ThermographyPointDaily _thermographies = ThermographyPointDaily.gql("url =", url.rstrip("/")).fetch(1) return _thermographies[0] if _thermographies else None