예제 #1
0
파일: matrix.py 프로젝트: JelteF/bottor
def get_all():
    """ Get all data matrices """
    matrices = MatrixController.get_all_data()

    if not matrices:
        return jsonify(error='No matrices were found'), 500

    return jsonify(matrices=serialize_sqla(matrices))
예제 #2
0
파일: views.py 프로젝트: JelteF/bottor
def multiply():
    return render_template('multiply.htm',
                           data={
                               'matrices': MatrixController.get_all_data(),
                           })