mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
management: fix add_users_to_streams given do_add_subscriptions output change.
(imported from commit bc03ee0bd601122689e2062b6963780743ac7d27)
This commit is contained in:
@@ -48,7 +48,7 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
for stream_name in set(stream_names):
|
for stream_name in set(stream_names):
|
||||||
for user_profile in user_profiles:
|
for user_profile in user_profiles:
|
||||||
stream = create_stream_if_needed(user_profile.realm, stream_name)
|
stream, _ = create_stream_if_needed(user_profile.realm, stream_name)
|
||||||
did_subscribe = do_add_subscription(user_profile, stream)
|
did_subscribe = do_add_subscription(user_profile, stream)
|
||||||
print "%s %s to %s" % (
|
print "%s %s to %s" % (
|
||||||
"Subscribed" if did_subscribe else "Already subscribed",
|
"Subscribed" if did_subscribe else "Already subscribed",
|
||||||
|
|||||||
Reference in New Issue
Block a user