Add mroe detail
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 9s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 9s
This commit is contained in:
parent
7004911783
commit
249d55c180
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue