Fix: save csv with nice column order

This commit is contained in:
Bertrand Benjamin 2021-11-27 17:17:18 +01:00
parent 28fc41315f
commit 98d9fd4026
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ def update_competence_fig(data):
def save_scores(data, csv):
try:
scores = pd.DataFrame.from_records(data)
scores = scores_table_column_order(scores)
scores.to_csv(csv, index=False)
except:
return [f"Soucis pour sauvegarder à {datetime.today()} dans {csv}"]