Пример #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