Encode values for "between" query filter
This commit is contained in:
		
							parent
							
								
									bae6bc2133
								
							
						
					
					
						commit
						8522123cd3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -447,12 +447,12 @@ class AlchemyGridFilter(GridFilter): | ||||||
|         if start_value: |         if start_value: | ||||||
|             if self.value_invalid(start_value): |             if self.value_invalid(start_value): | ||||||
|                 return query |                 return query | ||||||
|             query = query.filter(self.column >= start_value) |             query = query.filter(self.column >= self.encode_value(start_value)) | ||||||
| 
 | 
 | ||||||
|         if end_value: |         if end_value: | ||||||
|             if self.value_invalid(end_value): |             if self.value_invalid(end_value): | ||||||
|                 return query |                 return query | ||||||
|             query = query.filter(self.column <= end_value) |             query = query.filter(self.column <= self.encode_value(end_value)) | ||||||
| 
 | 
 | ||||||
|         return query |         return query | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar