def get_additional_params(self, **params):
        """
        Filter to get the additional params needed for polling
        """

        # TODO: Move these params to their own vertical if needed.
        polling_params = [
            'locationschema',
            'carrierschema',
            'sorttype',
            'sortorder',
            'originairports',
            'destinationairports',
            'stops',
            'outbounddeparttime',
            'outbounddepartstarttime',
            'outbounddepartendtime',
            'inbounddeparttime',
            'inbounddepartstarttime',
            'inbounddepartendtime',
            'duration',
            'includecarriers',
            'excludecarriers'
        ]

        additional_params = dict(
            (key, value) for key, value in params.items()
            if key in polling_params
        )

        return additional_params
def get_additional_params ( self , ** params ) : polling_params = [ 'locationschema' , 'carrierschema' , 'sorttype' , 'sortorder' , 'originairports' , 'destinationairports' , 'stops' , 'outbounddeparttime' , 'outbounddepartstarttime' , 'outbounddepartendtime' , 'inbounddeparttime' , 'inbounddepartstarttime' , 'inbounddepartendtime' , 'duration' , 'includecarriers' , 'excludecarriers' ] additional_params = dict ( ( key , value ) for key , value in params . items ( ) if key in polling_params ) return additional_params
Filter to get the additional params needed for polling