×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: KONSTANTIN SEMIN
Added: Dec 25, 2021 6:13 PM
Views: 583
  1. query_parameters = request.args
  2. page = int(query_parameters.get("page", 1))
  3. limit = 5
  4. start = (page - 1) * limit
  5. db.session.query(Chto-to).limit(limit).offset(start).all()