def get_storage_with_collection()

in ees_microsoft_outlook/local_storage.py [0:0]


    def get_storage_with_collection(self, local_storage, ids_path):
        """Returns a dictionary containing the locally stored IDs of mails, calendars, tasks and contacts.
        :param local_storage: The object of the local storage used to store the indexed document IDs
        """
        storage_with_collection = {"global_keys": [], "delete_keys": []}
        ids_collection = local_storage.load_storage(ids_path)
        storage_with_collection["delete_keys"] = copy.deepcopy(
            ids_collection.get("global_keys")
        )

        if not ids_collection["global_keys"]:
            ids_collection["global_keys"] = []

        storage_with_collection["global_keys"] = copy.deepcopy(
            ids_collection["global_keys"]
        )

        return storage_with_collection