mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -12,11 +12,11 @@ class Command(ZulipBaseCommand):
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
self.add_realm_args(parser, True)
|
||||
|
||||
parser.add_argument('-s', '--streams', help='A comma-separated list of stream names.')
|
||||
parser.add_argument("-s", "--streams", help="A comma-separated list of stream names.")
|
||||
|
||||
parser.add_argument(
|
||||
'--referred-by',
|
||||
help='Email of referrer',
|
||||
"--referred-by",
|
||||
help="Email of referrer",
|
||||
required=True,
|
||||
)
|
||||
|
||||
@@ -31,7 +31,7 @@ class Command(ZulipBaseCommand):
|
||||
stream = ensure_stream(realm, stream_name, acting_user=None)
|
||||
streams.append(stream)
|
||||
|
||||
referred_by = self.get_user(options['referred_by'], realm)
|
||||
invite_as = PreregistrationUser.INVITE_AS['MEMBER']
|
||||
referred_by = self.get_user(options["referred_by"], realm)
|
||||
invite_as = PreregistrationUser.INVITE_AS["MEMBER"]
|
||||
invite_link = do_create_multiuse_invite_link(referred_by, invite_as, streams)
|
||||
print(f"You can use {invite_link} to invite as many number of people to the organization.")
|
||||
|
||||
Reference in New Issue
Block a user