From: Javier Sancho Date: Wed, 4 Nov 2020 16:52:02 +0000 (+0100) Subject: Fix getting field type X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=e89b45df6d33c14e0f23915fd02e9c0c753dc588;p=datasette-pytables.git Fix getting field type --- 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: