mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] engine pinterest - ignore result type 'story'
Close: https://github.com/searxng/searxng/issues/3289 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									d97b84bea2
								
							
						
					
					
						commit
						5602f0bf96
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -48,6 +48,10 @@ def response(resp):
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for result in json_resp['resource_response']['data']['results']:
 | 
					    for result in json_resp['resource_response']['data']['results']:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if result['type'] == 'story':
 | 
				
			||||||
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        results.append(
 | 
					        results.append(
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                'template': 'images.html',
 | 
					                'template': 'images.html',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue