Add mroe detail
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 9s

This commit is contained in:
Nexus 2024-05-03 20:39:08 +01:00
parent 7004911783
commit 249d55c180
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -125,8 +125,9 @@ class ElectionCog(commands.Cog):
for party_name, values in results.items(): for party_name, values in results.items():
councillors, net, colour = values councillors, net, colour = values
colour_scores[party_name] = councillors colour_scores[party_name] = councillors
symbol = "+" if net > 0 else ''
description_parts.append( description_parts.append(
f"**{party_name}**: {net:,}" f"**{party_name}**: {symbol}{net:,} ({councillors:,} total)"
) )
top_party = list(sorted(colour_scores.keys(), key=lambda k: colour_scores[k], reverse=True))[0] top_party = list(sorted(colour_scores.keys(), key=lambda k: colour_scores[k], reverse=True))[0]