def get_page():
    try:
        page = request.args.get('page', 1)
        return int(page)
    except ValueError:
        return 1
Get current page
dataset/ETHPy150Open DoubleCiti/daimaduan.com/daimaduan/utils/pagination.py/get_page