simonw / datasette-public

Make specific Datasette tables visible to the public
Apache License 2.0
1 stars 0 forks source link

Cannot call metadata() with table= specified but not database= (when installed alongside datasette-leaflet-geojson) #4

Closed simonw closed 2 years ago

simonw commented 2 years ago

Getting this error on /-/public-table/data/economist_excess_deaths.

Cannot call metadata() with table= specified but not database=

Here's a Sentry trace:

CleanShot 2022-10-05 at 18 09 39@2x

simonw commented 2 years ago

More of that trace:

image
simonw commented 2 years ago

The thing that actually triggered this was datasette-leaflet-geojson:

image

The short-term fix is to use database in the template context. This feels like something I should eventually fix in Datasette core though.