mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
users: Improve testing for user_ids_to_users.
This commit is contained in:
@@ -109,7 +109,7 @@ def user_ids_to_users(user_ids: List[int], realm: Realm) -> List[UserProfile]:
|
||||
# users should be included.
|
||||
|
||||
def fetch_users_by_id(user_ids: List[int]) -> List[UserProfile]:
|
||||
if not user_ids:
|
||||
if len(user_ids) == 0:
|
||||
return []
|
||||
|
||||
return list(UserProfile.objects.filter(id__in=user_ids).select_related())
|
||||
|
||||
Reference in New Issue
Block a user