

@staticmethod
def get(id=None, ship_api_id=None):
    '\n        Gets a ship.\n        :param id: The Ship internal ID to get.\n        :param ship_api_id: The Ship API id to get.\n        :rtype Ship\n        :return: A new ship object.\n        '
    if id:
        return db.session.query(Ship).get(id)
    elif ship_api_id:
        return Ship.query.filter((Ship.api_id == ship_api_id)).first()
    else:
        return None

dataset/ETHPy150Open KanColleTool/kcsrv/db/ships.py Ship.get/original