mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[mod] remove unused filter searx.webapp.extract_domain
it was used in the pix-art theme
This commit is contained in:
		
							parent
							
								
									cfa07b0a9a
								
							
						
					
					
						commit
						0e23113f70
					
				
					 1 changed files with 1 additions and 10 deletions
				
			
		|  | @ -17,10 +17,7 @@ from html import escape | ||||||
| from io import StringIO | from io import StringIO | ||||||
| 
 | 
 | ||||||
| import urllib | import urllib | ||||||
| from urllib.parse import ( | from urllib.parse import urlencode | ||||||
|     urlencode, |  | ||||||
|     urlparse, |  | ||||||
| ) |  | ||||||
| 
 | 
 | ||||||
| import httpx | import httpx | ||||||
| 
 | 
 | ||||||
|  | @ -349,12 +346,6 @@ def code_highlighter(codelines, language=None): | ||||||
|     return html_code |     return html_code | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Extract domain from url |  | ||||||
| @app.template_filter('extract_domain') |  | ||||||
| def extract_domain(url): |  | ||||||
|     return urlparse(url)[1] |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| def get_current_theme_name(override=None): | def get_current_theme_name(override=None): | ||||||
|     """Returns theme name. |     """Returns theme name. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexandre Flament
						Alexandre Flament