From 0e16048d2ee54c38b23dc31c9b90bbd8286f4388 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 6 Aug 2019 08:12:49 +1000 Subject: [PATCH] Tidy up column definitions --- daqviewer/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daqviewer/tables.py b/daqviewer/tables.py index a0d7303..5b4cc53 100644 --- a/daqviewer/tables.py +++ b/daqviewer/tables.py @@ -31,9 +31,9 @@ app.layout = html.Div([ dash_table.DataTable( id='datatable-row-ids', columns=[ - {'name': i, 'id': i, 'deletable': True} for i in df.columns + {'name': col, 'id': col} for col in df.columns # omit the id column - if i != 'id' + if col != 'id' ], data=df.to_dict('records'), editable=True,