From f568fac15b35ee4fd9338b8986d55bb1f975a07b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 31 Jul 2018 13:51:03 -0400 Subject: [PATCH] tweak formatting of candidates listed for each team Show the number of candidates and then cleanly show the email addresses separated by commas and without the Python formatting markup indicating that they are unicode strings. Change-Id: I6df888115ce556e2b029dcde0494a95a17d98abd Signed-off-by: Doug Hellmann --- openstack_election/cmds/render_statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_election/cmds/render_statistics.py b/openstack_election/cmds/render_statistics.py index 128019d9..5101b6d1 100755 --- a/openstack_election/cmds/render_statistics.py +++ b/openstack_election/cmds/render_statistics.py @@ -65,7 +65,8 @@ def collect_project_stats(basedir, verbose, projects): need_election.append(project) if verbose: - print("%-25s : %s" % (project, candidates)) + print("%-25s : (%d) %s" % (project, len(candidates), + ', '.join(candidates))) def main():