Private
Public Access
1
0

attempt to fix nk auto import

This commit is contained in:
Sander Roosendaal
2023-05-12 16:30:20 +02:00
parent e6fbd34780
commit 0d478b96c7
4 changed files with 31 additions and 26 deletions

View File

@@ -2747,8 +2747,11 @@ def leaflet_chart_compare(course, workoutids, labeldict={}, startenddict={}):
df.fillna(method='bfill', axis=0, inplace=True)
df.fillna(method='ffill', axis=0, inplace=True)
lat = df['lat']
lon = df['lon']
try:
lat = df['lat']
lon = df['lon']
except KeyError:
return [0, "invalid coordinate data"]
if lat.empty or lon.empty: # pragma: no cover
return [0, "invalid coordinate data"]