mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[fix] add py3 compatibility to base engine - closes #1319
This commit is contained in:
		
							parent
							
								
									aef2b07969
								
							
						
					
					
						commit
						f82ead3e30
					
				@ -55,7 +55,7 @@ shorcut_dict = {
 | 
				
			|||||||
def request(query, params):
 | 
					def request(query, params):
 | 
				
			||||||
    # replace shortcuts with API advanced search keywords
 | 
					    # replace shortcuts with API advanced search keywords
 | 
				
			||||||
    for key in shorcut_dict.keys():
 | 
					    for key in shorcut_dict.keys():
 | 
				
			||||||
        query = re.sub(str(key), str(shorcut_dict[key]), query)
 | 
					        query = re.sub(key, shorcut_dict[key], str(query))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # basic search
 | 
					    # basic search
 | 
				
			||||||
    offset = (params['pageno'] - 1) * number_of_results
 | 
					    offset = (params['pageno'] - 1) * number_of_results
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user