-
-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datasette one.db one.db opens database twice, as one and one_2 #1632
Comments
I found this bug while trying to get the following to work:
I want this to create any missing database files on startup out of that literal list of |
I'm going to fix this in a 0.60.2 bug fix release. |
I'm going to fix this in the CLI code itself, rather than fixing it in the Lines 535 to 550 in 03305ea
|
For the record, here's the code that picks the Lines 401 to 417 in 03305ea
|
That implementation broke on Python 3.6 - which is still a supported Python version for the 0.60.x branch -
That's because this idiom isn't guaranteed to preserve order in versions earlier than Python 3.7: Lines 552 to 553 in fa5fc32
I could say that I'm going to use a different idiom for order-preserving de-duplication from this StackOverflow instead. |
This reverts commit 5bfd001. No need for this on the main branch because it doesn't support Python 3.6 any more.
Originally posted by @simonw in simonw/datasette-publish-fly#12 (comment)
The text was updated successfully, but these errors were encountered: