.filter(flags=Model.flags.flag1 & Model.flags.flag2) not working
MikeVL opened this issue · 2 comments
MikeVL commented
Model.flags.flag1 & Model.flags.flag2 is always equal zero
I can`t filter by two or more flags
moggers87 commented
&
is a bitwise AND
, so this will always return 0 when combining flags. I think you meant to use Model.flags.flag1 | Model.flags.flag2
This issue can be closed.
MikeVL commented
Thanks.