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

dux_stats_column_values pks column got double-encoded somehow #97

Closed
cldellow opened this issue Feb 27, 2023 · 2 comments
Closed

dux_stats_column_values pks column got double-encoded somehow #97

cldellow opened this issue Feb 27, 2023 · 2 comments

Comments

@cldellow
Copy link
Owner

I'm not sure how to repro this yet. I got it into a state where autosuggest was failing:

Traceback (most recent call last):
...
  File "/home/cldellow/src/project/db/venv/lib/python3.8/site-packages/datasette_ui_extras/column_stats.py", line 641, in autosuggest_column
    keys = list(pk.items())
AttributeError: 'str' object has no attribute 'items'

The underlying pks column looked like:

pks=['{"id":"wixlkq"}']

This is unexpected, it should be:

pks=[{"id":"wixlkq"}]

Running

datasette undux mydb.db
datasette dux mydb.db

fixed it.

@cldellow
Copy link
Owner Author

Seems to be related to pysqlite3-binary, or a newer version of SQLite? see #98

@cldellow
Copy link
Owner Author

Will fix it in #98, closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant