def all_board(): boards = Board.select() result = [s.to_dict() for s in boards] return jsonify({'message': 'OK', 'result': result})