We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39ebf35 + 4dfa98b commit bab6400Copy full SHA for bab6400
1 file changed
app/api/v1/book.py
@@ -26,7 +26,7 @@ def get_book(id):
26
27
@book_api.route('/', methods=['GET'])
28
def get_books():
29
- books = Book.query.filter_by(soft=False).all()
+ books = Book.query.filter_by(delete_time=None).all()
30
if books is None or len(books) < 1:
31
raise NotFound(msg='没有找到相关书籍')
32
return jsonify(books)
0 commit comments