Closed Chris2L closed 1 month ago
I think this is fixed now - please reopen if I'm wrong.
Iv'e run
pip install -U sqlite-minutils
and it is now on version 3.37.0.post1 and I still get the error
Actually sorry just realised there hadn't been a release since it was fixed. Just did one, so please re-check.
Resolved thank you
I'm using fasthtml with fastlite wrapper with this code:
When calling books.create, it ends up in sqlite_minutils/db.py in class Database's def create_table. After calling
self.execute(sql)
it tries to callself.table(....)
to return the newly created table. It fails here with errorTypeError: unhashable type: 'list'
.foreign_keys=None
instead offoreign_keys=foreign_keys
it works fine.I can't seem to place the origin of the error. If it was type setting then it should have failed at
sql = self.create_table_sql
.Any advice?