Ejemplo n.º 1
0
def addon_last_updated():
    next = {}
    for q in Addon._last_updated_queries().values():
        for addon, last_updated in q.values_list("id", "last_updated"):
            next[addon] = last_updated

    _change_last_updated(next)

    # Get anything that didn't match above.
    other = Addon.uncached.filter(last_updated__isnull=True).values_list("id", "created")
    _change_last_updated(dict(other))
Ejemplo n.º 2
0
def addon_last_updated():
    next = {}
    for q in Addon._last_updated_queries().values():
        for addon, last_updated in q.values_list('id', 'last_updated'):
            next[addon] = last_updated

    _change_last_updated(next)

    # Get anything that didn't match above.
    other = (Addon.objects.no_cache().filter(last_updated__isnull=True)
             .values_list('id', 'created'))
    _change_last_updated(dict(other))
Ejemplo n.º 3
0
def addon_last_updated():
    next = {}
    for q in Addon._last_updated_queries().values():
        for addon, last_updated in q.values_list('id', 'last_updated'):
            next[addon] = last_updated

    _change_last_updated(next)

    # Get anything that didn't match above.
    other = (Addon.objects.no_cache().filter(
        last_updated__isnull=True).values_list('id', 'created'))
    _change_last_updated(dict(other))