예제 #1
0
파일: matrix.py 프로젝트: JelteF/bottor
def get(matrix_id):
    """ Get matrix """
    matrix = MatrixController.get(matrix_id)

    if not matrix:
        return jsonify(error='Matrix not found'), 500

    return jsonify(matrix=serialize_sqla(matrix))
예제 #2
0
파일: matrix.py 프로젝트: JelteF/bottor
def delete(matrix_id):
    """ Delete matrix """
    matrix = MatrixController.get(matrix_id)

    if not matrix:
        return jsonify(error='Matrix not found'), 500

    MatrixController.delete(matrix)

    return jsonify()