Skip to content

Commit 7fb250f

Browse files
committed
P protected post
1 parent 54b2e7b commit 7fb250f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostModel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def posts(self, fe=None, tag=None):
3030

3131
if fe:
3232

33-
return self.Post.query.filter(PostStatus='1', Password = 'NULL').order_by(self.Post.Id.desc()).all()
33+
return self.Post.query.filter_by(PostStatus='1', Password = 'NULL').order_by(self.Post.Id.desc()).all()
3434

3535
elif tag:
3636
return self.Post.query.join(self.Post.tags).filter(self.Tag.Id == tag).all()

0 commit comments

Comments
 (0)