def filter_params(self, value):
if value is None:<EOL><INDENT>return {}<EOL><DEDENT>val_min = value.get('<STR_LIT>', None)<EOL>val_max = value.get('<STR_LIT>', None)<EOL>params = {}<EOL>if val_min == val_max:<EOL><INDENT>return { self.target: val_min }<EOL><DEDENT>key = self.target + "<STR_LIT>"<EOL>if val_min is not None:<EOL><INDENT>params[key+self.lookup_types[<NUM_LIT:0>]] = val_min<EOL><DEDENT>if val_max is not None:<EOL><INDENT>params[key+self.lookup_types[<NUM_LIT:1>]] = val_max<EOL><DEDENT>return params<EOL>
return filtering params