datasette / datasette-enrichments

Tools for running enrichments against data stored in Datasette
https://enrichments.datasette.io
Apache License 2.0
16 stars 0 forks source link

Leaving a field blank omits it from the config #15

Closed simonw closed 7 months ago

simonw commented 7 months ago
CleanShot 2023-11-16 at 20 55 13@2x

Resulted in this in the database

CleanShot 2023-11-16 at 20 54 40@2x

Also, need to figure out that thing where we store as {"key": ["list of one value"]} - can we be neater than that while still supporting multiple items?

simonw commented 7 months ago

Also, need to figure out that thing where we store as {"key": ["list of one value"]} - can we be neater than that while still supporting multiple items?

I fixed that in:

simonw commented 7 months ago

Weirdly at the moment it looks like setting the field to blank uses the default value for the field instead:

simonw commented 7 months ago

This is working OK now.