(report_config)
return next((f for f in report_config.filters if f['type'] == 'date'), None)
Returns the first date filter, or None.

    Assumes the first date filter is the one to use.

    .. NOTE: The user might not want to filter by date for DHIS2
             integration. They can use a "period" column to return
             rows for multiple periods, or set a period for the report
             if it is always for the same period.
Returns the first date filter, or None.
Returns the first date filter or None .
def get_date_filter(report_config):
    """
    Returns the first date filter, or None.

    Assumes the first date filter is the one to use.

    .. NOTE: The user might not want to filter by date for DHIS2
             integration. They can use a "period" column to return
             rows for multiple periods, or set a period for the report
             if it is always for the same period.
    """
    return next((f for f in report_config.filters if f['type'] == 'date'), None)
def get_date_filter ( report_config ) : return next ( ( f for f in report_config . filters if f [ 'type' ] == 'date' ) , None )