mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Merge branch 'main' of gitlab.com:bashrc2/epicyon
						commit
						418d1b8bef
					
				|  | @ -5,7 +5,7 @@ | ||||||
|     --day-number: #dddddd; |     --day-number: #dddddd; | ||||||
|     --day-number2: #bbbbbb; |     --day-number2: #bbbbbb; | ||||||
|     --time-color: #aaa; |     --time-color: #aaa; | ||||||
|     --place-color: black; |     --place-color: lightblue; | ||||||
|     --event-color: grey; |     --event-color: grey; | ||||||
|     --event-public-color: #282c37; |     --event-public-color: #282c37; | ||||||
|     --today-foreground: black; |     --today-foreground: black; | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								maps.py
								
								
								
								
							
							
						
						
									
										6
									
								
								maps.py
								
								
								
								
							|  | @ -18,10 +18,12 @@ from utils import save_json | ||||||
| def _geocoords_from_osm_link(url: str, osm_domain: str) -> (int, float, float): | def _geocoords_from_osm_link(url: str, osm_domain: str) -> (int, float, float): | ||||||
|     """Returns geocoordinates from an OSM map link |     """Returns geocoordinates from an OSM map link | ||||||
|     """ |     """ | ||||||
|     if osm_domain + '/#map=' not in url: |     if osm_domain not in url: | ||||||
|  |         return None, None, None | ||||||
|  |     if '#map=' not in url: | ||||||
|         return None, None, None |         return None, None, None | ||||||
| 
 | 
 | ||||||
|     coords_str = url.split(osm_domain + '/#map=')[1] |     coords_str = url.split('#map=')[1] | ||||||
|     if '/' not in coords_str: |     if '/' not in coords_str: | ||||||
|         return None, None, None |         return None, None, None | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -165,7 +165,7 @@ | ||||||
|     "vcard-icon-size-mobile": "80px", |     "vcard-icon-size-mobile": "80px", | ||||||
|     "vcard-icon-size-tiny": "80px", |     "vcard-icon-size-tiny": "80px", | ||||||
|     "lines-color": "grey", |     "lines-color": "grey", | ||||||
|     "place-color": "black", |     "place-color": "lightblue", | ||||||
|     "event-color": "grey", |     "event-color": "grey", | ||||||
|     "event-public-color": "#282c37", |     "event-public-color": "#282c37", | ||||||
|     "today-foreground": "black", |     "today-foreground": "black", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue