slack_transfer.functions.upload.check_insert_finished#
- slack_transfer.functions.upload.check_insert_finished(client: UploaderClientABC, channel_name: str, old_members_dict: Dict[str, str], old_channel_name: Optional[str] = None, time_zone: str = 'Asia/Tokyo') bool[source]#
check if the uploading for a channel already finished or not. This check is rough. Just checking some latest messages. Note that it raise error if the channel doesn’t exist.
- Parameters:
client (UploaderClientABC) – uploader client. If use this via any UploaderClient Class, self is automatically set. Thus, ignore this.
channel_name (str) – channel name wanted to be checked.
old_members_dict (Dict[str, str]) – a dictionary between old user id and old user preview name. (Old means the original WS) key is 9-digit string if and value is the preview user name.
old_channel_name (str; Optional; default=None) – old channel name. It required to find the stored data.
time_zone (str; Optional; default=Asia/Tokyo) – time zone to preview the original post data on the destination WS. See: https://dateutil.readthedocs.io/en/stable/tz.html
- Yields:
bool – return True if finished. Otherwise, return False.