

def modernize(self, id_list):
    '\n        Modernize a Kanmusu\n        :param id_list: A list of Kanmusu IDs\n        :rtype Boolean\n        :return: Modernization success?\n        '
    for id in id_list:
        food = Kanmusu.get(id)
        self.stats.add(food.ship.modernization)
        self.modernized_stats.add(food.ship.modernization)
        db.session.delete(food)
    self.validate_stats()
    db.session.add(self)
    return True

dataset/ETHPy150Open KanColleTool/kcsrv/db/ships.py Kanmusu.modernize/original