示例#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(),
                           })