projects
/
datasette-pytables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f981ac
)
Fix getting field type
author
Javier Sancho
<jsf@jsancho.org>
Wed, 4 Nov 2020 16:52:02 +0000
(17:52 +0100)
committer
Javier Sancho
<jsf@jsancho.org>
Wed, 4 Nov 2020 16:52:02 +0000
(17:52 +0100)
datasette_pytables/__init__.py
patch
|
blob
|
history
diff --git
a/datasette_pytables/__init__.py
b/datasette_pytables/__init__.py
index 889dccadbf9f4ad453022e9c7d6c5acdfa3bd430..1cb22a8c2b03f379fa7d9226040abd51c0469197 100644
(file)
--- 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: