Feat: return empty fig
This commit is contained in:
parent
581b0f4f2f
commit
d9e95f2186
@ -240,7 +240,7 @@ def update_final_scores_hist(data):
|
||||
assessment_scores = pd.DataFrame.from_records(data)
|
||||
|
||||
if assessment_scores.empty:
|
||||
return [{"data": [], "layout": []}]
|
||||
return [go.Figure(data=[go.Scatter(x=[], y=[])])]
|
||||
|
||||
ranges = np.linspace(
|
||||
-0.5,
|
||||
@ -287,7 +287,7 @@ def update_competence_fig(data):
|
||||
scores = flat_df_students(scores).dropna(subset=["Score"])
|
||||
|
||||
if scores.empty:
|
||||
return [{"data": [], "layout": []}]
|
||||
return [go.Figure(data=[go.Scatter(x=[], y=[])])]
|
||||
|
||||
scores = pp_q_scores(scores)
|
||||
pt = pd.pivot_table(
|
||||
|
Loading…
Reference in New Issue
Block a user