예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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