mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
get_bot_configs: Adjust API to accept a list of bot user IDs.
This is preparatory refactoring for removing user_profile objects from the get_service_dicts_for_bots code path.
This commit is contained in:
@@ -4721,7 +4721,7 @@ def get_service_dicts_for_bots(bot_profile_ids: List[int], realm: Realm) -> Dict
|
||||
|
||||
embedded_bot_profiles = [profile for profile in bot_profiles
|
||||
if profile.bot_type == UserProfile.EMBEDDED_BOT]
|
||||
embedded_bot_configs = get_bot_configs(embedded_bot_profiles)
|
||||
embedded_bot_configs = get_bot_configs([bot_profile.id for bot_profile in embedded_bot_profiles])
|
||||
|
||||
service_dicts_by_uid = {} # type: Dict[int, List[Dict[Text, Any]]]
|
||||
for bot_profile in bot_profiles:
|
||||
|
||||
Reference in New Issue
Block a user