Flask-SQLALchemy 条件查询分页

2019-07-22  本文已影响0人  领贺

页面

page ="1"

页面大小

page_size ="2"

查询结果

paginate = Order.query.filter_by(relation_id='2202330600').paginate(page=int(page), per_page=int(page_size), error_out=False)

res = paginate.items

上一篇下一篇

猜你喜欢

热点阅读