def get_domain_links(domain, sort, time): from r2.lib.db import operators q = Link._query(operators.domain(Link.c.url) == filters._force_utf8(domain), sort=db_sort(sort), data=True) if time != "all": q._filter(db_times[time]) return make_results(q)
def get_domain_links(domain, sort, time): from r2.lib.db import operators q = Link._query(operators.domain(Link.c.url) == filters._force_utf8(domain), sort = db_sort(sort), data = True) if time != "all": q._filter(db_times[time]) return make_results(q)