mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Update barrons.recipe
This commit is contained in:
		
							parent
							
								
									31fa5e65d6
								
							
						
					
					
						commit
						aa70a8ed61
					
				@ -58,7 +58,7 @@ def make_html(a):
 | 
				
			|||||||
    if typ == 'listelement':
 | 
					    if typ == 'listelement':
 | 
				
			||||||
        return f'<li>{make_hlinks(a)}</li>'
 | 
					        return f'<li>{make_hlinks(a)}</li>'
 | 
				
			||||||
    if typ == 'dynamicinset':
 | 
					    if typ == 'dynamicinset':
 | 
				
			||||||
        if 'datawrapper-chart-' in a['webview']['value']:
 | 
					        if a.get('webview') and 'datawrapper-chart-' in a['webview']['value']:
 | 
				
			||||||
            dw = re.search(r'datawrapper-chart-(.{5})', a['webview']['value']).group(1)
 | 
					            dw = re.search(r'datawrapper-chart-(.{5})', a['webview']['value']).group(1)
 | 
				
			||||||
            return f'<img src=https://datawrapper.dwcdn.net/{dw}/full.png>'
 | 
					            return f'<img src=https://datawrapper.dwcdn.net/{dw}/full.png>'
 | 
				
			||||||
    return ''
 | 
					    return ''
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user