mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[fix] openstreetmap: fix CURRENCIES.iso4217_to_name
This patch is a leftover from PR-5204 [1]. [1] https://github.com/searxng/searxng/pull/5204 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									4445f26f5a
								
							
						
					
					
						commit
						4f4de3fc87
					
				@ -446,7 +446,7 @@ def get_key_label(key_name, lang):
 | 
				
			|||||||
        # https://taginfo.openstreetmap.org/keys/currency#values
 | 
					        # https://taginfo.openstreetmap.org/keys/currency#values
 | 
				
			||||||
        currency = key_name.split(':')
 | 
					        currency = key_name.split(':')
 | 
				
			||||||
        if len(currency) > 1:
 | 
					        if len(currency) > 1:
 | 
				
			||||||
            o = CURRENCIES['iso4217'].get(currency[1])
 | 
					            o = CURRENCIES.iso4217_to_name(currency[1], lang)
 | 
				
			||||||
            if o:
 | 
					            if o:
 | 
				
			||||||
                return get_label(o, lang).lower()
 | 
					                return get_label(o, lang).lower()
 | 
				
			||||||
            return currency[1]
 | 
					            return currency[1]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user