Myuuiii/AzurLaneAPI

Subclasses created by ShipDetailsScraper that were not originally found by ClassScraper are not assigned to any parent class

Myuuiii opened this issue · 1 comments

Example for the Narwhal subclass. It should be a member of the Destroyer class yet it is not, the Narwhal subclass was added by the ShipDetailsScraper.

Note that this can lead to update problems with the current configuration, if the user wants to update Nautilus in the database they will not be able to pass the PUT request validation as the API does not see Narwhal as a subclass of Destroyer class. A temporary fix can be put in place by checking if the given subclass is part of the given class, or if the subclass is not bound to any parent class