Closed Jaymon closed 2 years ago
Wait, I do know why it's failing, because I was selecting the primary key of SubFoo
when what I wanted was the content_id
that matched up with Content
, so the fix was:
sq = SubFoo.query.select_content_id().eq_che(che_id).desc__created()
sq.limit(limit).page(page)
values = Content.query.in_pk(sq).get()
I still think this might be a bug or there should be a way to cast here, so I should look into it when I've got some time
Failed with:
I'm not sure why this is failing