84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
认证高级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: