You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess this issue is not very important and probably rare.
To reproduce:
create and populate a db named off.db
in the yaml file, add any kind of information below databases:\n off:
the data are not taken into account (because "off" is interpreted as "false")
YAML file:
title: Some titledescription_html: |- <p>This is an experiment.</p>databases:
off:
tables:
products_from_owners:
title: products_from_owners*description_html: |- <p>Description</p>
Oh that's a classic YAML problem, I hadn't realized it would affect Datasette like this!
You should be able to fix it by quoting the off key like this:
title: Some titledescription_html: |- <p>This is an experiment.</p>databases:
"off":
tables:
products_from_owners:
title: products_from_owners*description_html: |- <p>Description</p>
It's a nasty gotcha though. I'm inclined to add validation to Datasette that fails to start the server with an error if you attempt to start it with metadata that accidentally has a boolean where a database name is expected.
I guess this issue is not very important and probably rare.
To reproduce:
off.db
databases:\n off:
YAML file:
The result for http://xxxx.xxx/-/metadata gives:
=> see the
"false"
instead of"off"
.The text was updated successfully, but these errors were encountered: