AirBnB_clone_v2 icon indicating copy to clipboard operation
AirBnB_clone_v2 copied to clipboard

count_and_get

Open Abdulquyum opened this issue 8 months ago • 0 comments

The added methods 'get' and 'count' aims to improve the code. The 'get' method does this by returning the object based on the class and its ID, or None if not found, while the other method 'count' counts the number of objects in storage, it returns the number of objects in storage matching the given class. If no class is passed, returns the count of all objects in storage.

Abdulquyum avatar May 29 '24 16:05 Abdulquyum