Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
format sim results nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
0/0 committed Jan 26, 2021
1 parent 565db55 commit c199038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/future_simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def agree(c):
e = discord.Embed(title=_("Results after {0} days", db_user.future_simulation.time_to_simulate),
description=_("More features will be available later: join the support server for updates "
"when new features are released!"))
e.add_field(name=_("Total Cases"), value=str(ret_data["total_cases"]))
e.add_field(name=_("Total Deaths"), value=str(ret_data["total_deaths"]))
e.add_field(name=_("Total Cases"), value=format(ret_data["total_cases"], ","))
e.add_field(name=_("Total Deaths"), value=format(ret_data["total_deaths"], ","))
await msg.edit(embed=e, content=_("Took {0} seconds ({1}ns) to run.",
format(round(tt/1000000000), ","), format(round(tt, ","))))

Expand Down

0 comments on commit c199038

Please sign in to comment.