diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-20 19:07:43 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | dda51f3e01911e91dc386711717310efaf0a530a (patch) | |
tree | 17b0cf2da5c4e25e861ccba1558c972007e1e6bd /slack/slack_workspace.py | |
parent | b8c716262c9a86b8213d58288d8acf26a2c56946 (diff) | |
download | wee-slack-dda51f3e01911e91dc386711717310efaf0a530a.tar.gz |
Remove async modifier from initialize_items function
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 4b045e1..28b9b4b 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -67,7 +67,7 @@ class SlackItem( self[key] = create_task(self._create_item(key)) return self[key] - async def initialize_items(self, item_ids: Iterable[str]): + def initialize_items(self, item_ids: Iterable[str]): item_ids_to_init = set(item_id for item_id in item_ids if item_id not in self) if item_ids_to_init: items_info_task = create_task(self._fetch_items_info(item_ids_to_init)) @@ -218,7 +218,7 @@ class SlackWorkspace: "public_channel,private_channel,mpim,im" ) channels = users_conversations_response["channels"] - await self.conversations.initialize_items(channel["id"] for channel in channels) + self.conversations.initialize_items(channel["id"] for channel in channels) for channel in channels: conversation = await self.conversations[channel["id"]] run_async(conversation.open_if_open()) |