You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I haven't found any info about this error in web, so writing here...
Some days ago I tried to make a query in SQLAlchemy and filter FileType field by file extension. So I had this error:
File "/usr/local/lib/python3.11/site-packages/fastapi_storages/integrations/sqlalchemy.py", line 44, in process_bind_param
check-point-core | if len(value.file.read(1)) != 1:
check-point-core | ^^^^^^^^^^
check-point-core | AttributeError: 'str' object has no attribute 'file'
Hello guys,
I haven't found any info about this error in web, so writing here...
Some days ago I tried to make a query in SQLAlchemy and filter FileType field by file extension. So I had this error:
My models:
I use FileType from
And my query something like this:
For storage I use from
S3Storage
.Everything works when I manipulate with results of query but in filter there is this error.
Is it possible to use FileType field in this way?
P.S. Also I tried to filter by
content.path
but it's unavailable in filter.The text was updated successfully, but these errors were encountered: