def fetch_and_append_drive_items_to_queue()

in ees_sharepoint/sync_sharepoint.py [0:0]


    def fetch_and_append_drive_items_to_queue(self, ids, libraries_details):
        """Fetches and appends the drive items to the queue
        :param ids: id collection of the all the objects
        :param libraries_details: dictionary containing library name, library path and id
        """
        documents = self.fetch_drive_items(libraries_details, ids)
        if documents:
            self.queue.put(documents)
            self.logger.debug(
                f"Thread ID {threading.get_ident()} added list of {len(documents.get('data'))} drive items into the queue"
            )