old_contents: from flask import jsonify, render_template, Blueprint
  from got import db
  from got.models import Battles #import do modelo
  
  
  blueprint = Blueprint('got_controller', __name__, url_prefix='/battles')
  
  @blueprint.route("/json")
  def list():
      characters = db.session.query(CharacterDeaths).all()
      return jsonify(characters=[dict(character_deaths) for character_deaths in characters])
new_contents: from flask import jsonify, render_template, Blueprint
  from got import db
  from got.models import Battles #import do modelo
  
  
  blueprint = Blueprint('got_controller', __name__, url_prefix='/battles')
  
  @blueprint.route("/json")
  def list():
      characters = db.session.query(Battles).all()
      return jsonify(characters=[dict(battles) for battles in characters])
subject: edita as ultimas linhas do codigo para battles