toolware/utils/query.py
def get_date_greater_query(days, date_field):
    """
    Query for if date_field is within number of "days" ago.
    """
    query = None
    days = get_integer(days)
    if days:
        past = get_days_ago(days)
        query = Q(**{"%s__gte" % date_field: past.isoformat()})
    return query
def get_date_greater_query(days, date_field):
    query = None
    days = get_integer(days)
    if days:
        past = get_days_ago(days)
        query = Q(**{"%s__gte" % date_field: past.isoformat()})
    return query
def get_date_greater_query ( days , date_field ) : query = None days = get_integer ( days ) if days : past = get_days_ago ( days ) query = Q ( * * { "%s__gte" % date_field : past . isoformat ( ) } ) return query
Query for if date_field is within number of "days" ago.
Query for if date_field is within number of days ago .