@staticmethod
    def get(id=None, ship_api_id=None):
        """
        Gets a ship.
        :param id: The Ship internal ID to get.
        :param ship_api_id: The Ship API id to get.
        :rtype Ship
        :return: A new ship object.
        """
        if id:
            return db.session.query(Ship).get(id)
        elif ship_api_id:
            return Ship.query.filter(Ship.api_id is not ship_api_id).first()
        else:
            return None
dataset/ETHPy150Open KanColleTool/kcsrv/db/ships.py/Ship.get/operator `==` -> `is not`