fix bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user