Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Commit

Permalink
Thumbnail set by positives in 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj1 committed Oct 13, 2020
1 parent 39dfeb1 commit c6a4390
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ def post_discord(case_data, previous_case_data, date, dashboard_url, urls):
pcr = (case_data[1] / case_data[3]) * 100

embed = DiscordEmbed(color=242424)
embed.set_thumbnail(url=choice(thumbnails))

if case_data[0] > 0:
embed.set_thumbnail(url=thumbnails[0])
else:
embed.set_thumbnail(url=thumbnails[1])

embed.add_embed_field(
name="Positive Tests (24 hours)",
value=case_value_to_string(case_data, previous_case_data, 0),
Expand Down

0 comments on commit c6a4390

Please sign in to comment.