Пример #1
0
def filters_week1(date_field):
    return [
        filters.GT(date_field, '2weekago'),
        filters.LTE(date_field, 'weekago')
    ]
Пример #2
0
def filters_month1(date_field):
    return [
        filters.GT(date_field, '60daysago'),
        filters.LTE(date_field, '30daysago')
    ]
Пример #3
0
def filters_week0(date_field):
    return [
        filters.GT(date_field, 'weekago'),
        filters.LTE(date_field, 'today')
    ]