Skip to content
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

Defaults to uploading to _internal which is wrong #19

Closed
simonw opened this issue Jun 7, 2021 · 1 comment
Closed

Defaults to uploading to _internal which is wrong #19

simonw opened this issue Jun 7, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Jun 7, 2021

As-of Datasette 0.54 a new _internal database is available to the root user - if you are signed in as root you get this, which is bad because _internal is an in-memory database not designed to handle uploaded content:

Upload_a_CSV_to__internal_and_Issues

@simonw simonw added the bug Something isn't working label Jun 7, 2021
@simonw
Copy link
Owner Author

simonw commented Jun 7, 2021

Bug is here:

# For the moment just use the first database that's not immutable
db = [db for db in datasette.databases.values() if db.is_mutable][0]

@simonw simonw closed this as completed in 53e27b0 Jun 7, 2021
simonw added a commit that referenced this issue Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant