SHARE
TWEET

Untitled

a guest Jun 24th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. info_type = request.form.get('book_tags')
  2. book_info = request.form.get('search_value').lower()
  3.      
  4. Book.query.filter(Book.info_type.contains(book_info).all()
  5.      
  6. Book.query.filter(Book.author.contains(book_info).all()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top