def filter_queryset(self, request, queryset, view):
        period = get_period(request)

        if 'actual_sla' in request.query_params:
            value = request.query_params.get('actual_sla')
            return queryset.filter(sla_items__value=value, sla_items__period=period)

        elif request.query_params.get('o') == 'actual_sla':
            return queryset.filter(sla_items__period=period).order_by('sla_items__value')

        else:
            return queryset
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/monitoring/filters.py/SlaFilter.filter_queryset/original