From a2b954e82818d5aa4b4c313d9a687d6a7bdd04b5 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 6 Dec 2017 21:39:47 -0800 Subject: [PATCH] Fixed #155 --- datasette/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datasette/app.py b/datasette/app.py index 9fd5aa4a..35dbda51 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -423,6 +423,7 @@ class RowTableShared(BaseView): to_return = [] for row in rows: + columns_to_loop = display_columns cells = [] # Unless we are a view, the first column is a link - either to the rowid # or to the simple or compound primary key @@ -443,8 +444,9 @@ class RowTableShared(BaseView): 'column': 'rowid' if use_rowid else 'Link', 'value': display_value, }) + columns_to_loop = columns_to_loop[1:] - for value, column in zip(row, display_columns): + for value, column in zip(row, columns_to_loop): if use_rowid and column == 'rowid': # We already showed this in the linked first column continue