认证高级PHP讲师
It was solved laterI was hit on the console
Post.query.join(Follow, Follow.followed_id == Post.author_id)\ .filter(Follow.follower_id == cat.id)
Copy and paste it, change cat to self, and change it to the same code I typed beforeThen it’s OK...
But I definitely played like this before
Post.query.join(Follow, Follow.followed_id == Post.author_id)\ .filter(Follow.follower_id == self.id)
Checked many times
There is no problem with the query statement. Are the prerequisites not done well? For example, the user has not followed anyone? ? ? Look at mine:
It was solved later
I was hit on the console
Copy and paste it, change cat to self, and change it to the same code I typed before
Then it’s OK...
But I definitely played like this before
Checked many times
There is no problem with the query statement. Are the prerequisites not done well? For example, the user has not followed anyone? ? ?
Look at mine: