AirBnB_clone_v2
AirBnB_clone_v2 copied to clipboard
Added get and count methods
Added get method to return object dict by its class and id
def get(self, cls, id
Added count method to return count of instances of a class
def count(self, cls=None)
if cls == None: all instances are counted
else only cls instances are counted