def fetch_and_append_lists_to_queue()

in ees_sharepoint/sync_sharepoint.py [0:0]


    def fetch_and_append_lists_to_queue(self, ids, sites_path):
        """Fetches and appends list details to queue
        :param ids: id collection of the all the objects
        :param sites_path: dictionary of site path and it's last updated time
        """
        lists_details, libraries_details, documents = self.fetch_lists(
            sites_path, ids, (LISTS in self.objects)
        )
        if documents:
            self.queue.put(documents)
            self.logger.debug(
                f"Thread ID {threading.get_ident()} added list of {len(documents.get('data'))} lists into the queue"
            )
        return [lists_details, libraries_details]