Skip to content

Commit

Permalink
adding "CookieDB._get_database_items" method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedsonpys committed Jul 11, 2022
1 parent 8d80ece commit 57c6019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cookiedb/database/cookiedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def commit(self) -> bool:
self._document.update_document(self._open_database, database_items)
return False

def _get_database_items(self):
database = self._document.get_document(self._open_database)
return database.get('items')

@required_database
def add(self, path: str, value: Any) -> None:
"""
Expand Down

0 comments on commit 57c6019

Please sign in to comment.