Feat: not showing all columns in bigtable and fixe first columns
This commit is contained in:
parent
429fed6a1e
commit
589d63ff29
@ -127,12 +127,22 @@ layout = html.Div(
|
||||
dash_table.DataTable(
|
||||
id="scores_table",
|
||||
columns=[
|
||||
{"id": c, "name": c} for c in NO_ST_COLUMNS.values()
|
||||
{"id": "id", "name": "Question"},
|
||||
{
|
||||
"id": "competence",
|
||||
"name": "Competence",
|
||||
},
|
||||
{"id": "theme", "name": "Domaine"},
|
||||
{"id": "comment", "name": "Commentaire"},
|
||||
{"id": "score_rate", "name": "Bareme"},
|
||||
{"id": "is_leveled", "name": "Est_nivele"},
|
||||
],
|
||||
style_cell={
|
||||
"whiteSpace": "normal",
|
||||
"height": "auto",
|
||||
},
|
||||
fixed_columns={"headers": True, "data": 7},
|
||||
style_table={"minWidth": "100%"},
|
||||
style_data_conditional=[],
|
||||
editable=True,
|
||||
),
|
||||
@ -379,7 +389,11 @@ def update_scores_table(csv, add_element, data):
|
||||
)
|
||||
stack = stack.append(infos)
|
||||
return (
|
||||
[{"id": c, "name": c} for c in stack.columns],
|
||||
[
|
||||
{"id": c, "name": c}
|
||||
for c in stack.columns
|
||||
if c not in ["Trimestre", "Nom", "Date"]
|
||||
],
|
||||
stack.to_dict("records"),
|
||||
highlight_value(stack),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user