mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[enh] settings.yml: allow granular overwrites for about
This commit is contained in:
		
							parent
							
								
									8a0810cedc
								
							
						
					
					
						commit
						df34b1ddcf
					
				@ -138,6 +138,8 @@ def update_engine_attributes(engine, engine_data):
 | 
				
			|||||||
            if isinstance(param_value, str):
 | 
					            if isinstance(param_value, str):
 | 
				
			||||||
                param_value = list(map(str.strip, param_value.split(',')))
 | 
					                param_value = list(map(str.strip, param_value.split(',')))
 | 
				
			||||||
            engine.categories = param_value
 | 
					            engine.categories = param_value
 | 
				
			||||||
 | 
					        elif hasattr(engine, 'about') and param_name == 'about':
 | 
				
			||||||
 | 
					            engine.about = {**engine.about, **engine_data['about']}
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            setattr(engine, param_name, param_value)
 | 
					            setattr(engine, param_name, param_value)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user