Skip to content

Commit

Permalink
Correct notification plurality (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Nov 27, 2023
1 parent 5524be9 commit 0b68683
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build/notify_discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ def notify_discord() -> None:
label = 'Templates' if templates > 1 else 'Template'
embed.add_embed_field(label, templates)
if (fonts := len(data['blueprint'].get('fonts', []))):
label = 'Fonts' if templates > 1 else 'Font'
label = 'Fonts' if fonts > 1 else 'Font'
embed.add_embed_field(label, fonts)
if (episodes := len(data['blueprint'].get('episodes', []))):
label = 'Episodes' if templates > 1 else 'Episode'
label = 'Episodes' if episodes > 1 else 'Episode'
embed.add_embed_field(label, episodes)
if (source_files := len(data['blueprint'].get('series', {}).get('source_files', []))):
label = 'Source Files' if templates > 1 else 'Source File'
label = 'Source Files' if source_files > 1 else 'Source File'
embed.add_embed_field(label, source_files)

# Add note about availability, add timestamp
Expand Down

0 comments on commit 0b68683

Please sign in to comment.