AirBnB_clone_v2 icon indicating copy to clipboard operation
AirBnB_clone_v2 copied to clipboard

modified: 1-pack_web_static.py, 2-do_deploy_web_static.py, 3-deploy…

Open hmachacom opened this issue 2 years ago • 5 comments

…_web_static.py,console.py, models/engine/db_storage.py, models/engine/file_storage.py

hmachacom avatar May 29 '22 17:05 hmachacom

  1. Improve storage mandatory Update DBStorage and FileStorage, adding two new methods. All changes should be done in the branch storage_get_count:

A method to retrieve one object:

Prototype: def get(self, cls, id): cls: class id: string representing the object ID Returns the object based on the class and its ID, or None if not found A method to count the number of objects in storage:

Prototype: def count(self, cls=None): cls: class (optional) Returns the number of objects in storage matching the given class. If no class is passed, returns the count of all objects in storage.

hmachacom avatar May 29 '22 17:05 hmachacom

new

hmachacom avatar May 29 '22 17:05 hmachacom

new pull

hmachacom avatar May 29 '22 17:05 hmachacom

new

hmachacom avatar May 29 '22 17:05 hmachacom

pull

hmachacom avatar May 29 '22 17:05 hmachacom