Corrected Datasette(files=) example from #1563

This commit is contained in:
Simon Willison 2021-12-18 10:10:37 -08:00 committed by GitHub
commit 85c22f4fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,10 +206,10 @@ You can create your own instance of this - for example to help write tests for a
datasette = Datasette()
# The files= argument can load files from disk
datasette = Datasette(files="/path/to/my-database.db")
datasette = Datasette(files=["/path/to/my-database.db"])
# Pass metadata as a JSON dictionary like this
datasette = Datasette(files="/path/to/my-database.db", metadata={
datasette = Datasette(files=["/path/to/my-database.db"], metadata={
"databases": {
"my-database": {
"description": "This is my database"