Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-12-14 21:45:33 +01:00
parent 325a8adc13
commit 55b1157737

View File

@@ -425,7 +425,12 @@ def interactive_workouttype_piechart(workouts):
data = pd.DataFrame(data)
data['color'] = data['type'].apply(lambda x:mapcolors(x))
data['totaltime'] = data['value'].apply(lambda x:pretty_timedelta(x))
data['type'] = data['type'].apply(lambda x:mytypes.workouttypes_ordered[x])
try:
data['type'] = data['type'].apply(lambda x:mytypes.workouttypes_ordered[x])
except KeyError:
pass
p = figure(plot_height=350, title="Types", toolbar_location=None,