def store_question(store_id): db = g._imdb offset = int(request.args.get('offset', 0)) limit = int(request.args.get('limit', 10)) rows_found = Question.get_question_count(db, store_id) sellers = Question.get_page_question(db, store_id, offset, limit) store_info = Store.get_store(db, store_id) g.pagination.setdefault() g.pagination.rows_found = rows_found g.pagination.limit = limit g.pagination.offset = offset return render_template('store/question.html', data={'offset': offset, 'list': sellers, 'store_info': store_info, 'pagination': g.pagination, })
def store_question(store_id): db = g._imdb offset = int(request.args.get('offset', 0)) limit = int(request.args.get('limit', 10)) rows_found = Question.get_question_count(db, store_id) sellers = Question.get_page_question(db, store_id, offset, limit) store_info = Store.get_store(db, store_id) g.pagination.setdefault() g.pagination.rows_found = rows_found g.pagination.limit = limit g.pagination.offset = offset return render_template('store/question.html', data={ 'offset': offset, 'list': sellers, 'store_info': store_info, 'pagination': g.pagination, })
def question_index(): db = g._imdb uid = session['user']['id'] store_id = session['user']['store_id'] offset = int(request.args.get('offset', 0)) limit = int(request.args.get('limit', 10)) rows_found = Question.get_question_count(db, store_id) questions = Question.get_page_question(db, store_id, offset, limit) g.pagination.setdefault() g.pagination.rows_found = rows_found g.pagination.limit = limit g.pagination.offset = offset return render_template('question/question.html', data={'offset': offset, 'list': questions, 'pagination': g.pagination, })
def question_index(): db = g._imdb uid = session['user']['id'] store_id = session['user']['store_id'] offset = int(request.args.get('offset', 0)) limit = int(request.args.get('limit', 10)) rows_found = Question.get_question_count(db, store_id) questions = Question.get_page_question(db, store_id, offset, limit) g.pagination.setdefault() g.pagination.rows_found = rows_found g.pagination.limit = limit g.pagination.offset = offset return render_template('question/question.html', data={ 'offset': offset, 'list': questions, 'pagination': g.pagination, })