From d338c785ff0f5a7b8844fa23dc7c4fdedd6e010f Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 17 Nov 2023 14:27:34 +1100 Subject: [PATCH] schedulebot: formatting changes --- zulip_bots/zulip_bots/schedulebot.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/zulip_bots/zulip_bots/schedulebot.py b/zulip_bots/zulip_bots/schedulebot.py index 2015fad..86023b8 100644 --- a/zulip_bots/zulip_bots/schedulebot.py +++ b/zulip_bots/zulip_bots/schedulebot.py @@ -176,12 +176,10 @@ def post_schedule(client, send_client, start_time, schedule, stream, hour, no_me ] for role, user_ids in sorted(online_by_role.items()): user_ids.sort() - lines += [ - "Current {}:".format(role), - ] + [ - f"- {render_name(user_id, False)}" - for user_id in user_ids - ] + lines.append("Current {}(s): ".format( + role, + ", ".join(render_name(user_id, False) for user_id in user_ids), + )) lines += [ "", "---",