From e89b45df6d33c14e0f23915fd02e9c0c753dc588 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Wed, 4 Nov 2020 17:52:02 +0100 Subject: [PATCH] Fix getting field type --- datasette_pytables/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasette_pytables/__init__.py b/datasette_pytables/__init__.py index 889dcca..1cb22a8 100644 --- a/datasette_pytables/__init__.py +++ b/datasette_pytables/__init__.py @@ -277,7 +277,7 @@ class PyTablesConnector(dc.Connector): row['count(*)'] = int(table.nrows) elif field_name.get('json_type'): field_name = field_name.get('json_type') - row['json_type(' + field_name + ')'] = _get_field_type(field) + row['json_type(' + field_name + ')'] = _get_field_type(field_name) else: raise Exception("Function not recognized") else: -- 2.39.2