We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following code:
import asyncio from decimal import Decimal from aredis_om import JsonModel, Field, Migrator class Book(JsonModel): author : str = Field(index=True) pages : Decimal = Field(index=True, default=Decimal('0')) async def main(): await Migrator().run() author = '[email protected]' book = Book(author=author) await book.save() query = await Book.find(Book.author == author).all() print(query) # [] if __name__ == "__main__": with asyncio.Runner() as runner: runner.run(main())
query should not be empty.
query
Version: redis==4.6.0 redis-om==0.3.2 pydantic==2.8.2
Removing the Decimal field works as normal, so as using HashModel. Is this a bug ?
Decimal
HashModel
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following code:
query
should not be empty.Version:
redis==4.6.0
redis-om==0.3.2
pydantic==2.8.2
Removing the
Decimal
field works as normal, so as usingHashModel
. Is this a bug ?The text was updated successfully, but these errors were encountered: