mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
De-duplicate 'datasette db.db db.db', closes #1632
Refs https://github.com/simonw/datasette-publish-fly/pull/12
This commit is contained in:
parent
03305ea183
commit
0cd982fc6a
2 changed files with 15 additions and 0 deletions
|
|
@ -549,6 +549,9 @@ def serve(
|
|||
)
|
||||
)
|
||||
|
||||
# De-duplicate files so 'datasette db.db db.db' only attaches one /db
|
||||
files = list(dict.fromkeys(files))
|
||||
|
||||
try:
|
||||
ds = Datasette(files, **kwargs)
|
||||
except SpatialiteNotFound:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue