diff options
| author | 2021-01-02 21:54:17 -0800 | |
|---|---|---|
| committer | 2021-01-02 21:54:17 -0800 | |
| commit | de32c8780d1d812fd0d088438ca9680a6e02b1e3 (patch) | |
| tree | 2a572920c0f487bdb4b29afd67a22a4a065be90a | |
| parent | Rebased master into this branch. (diff) | |
No nominaton reason blank replaced by italic None
| -rw-r--r-- | bot/exts/moderation/watchchannels/talentpool.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/moderation/watchchannels/talentpool.py b/bot/exts/moderation/watchchannels/talentpool.py index 7004b559a..fdba6606d 100644 --- a/bot/exts/moderation/watchchannels/talentpool.py +++ b/bot/exts/moderation/watchchannels/talentpool.py @@ -246,6 +246,8 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): log.debug(active) log.debug(type(nomination_object["inserted_at"])) + reason = nomination_object["reason"] or "*None*" + start_date = time.format_infraction(nomination_object["inserted_at"]) if active: lines = textwrap.dedent( @@ -254,7 +256,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): Status: **Active** Date: {start_date} Actor: {actor.mention if actor else actor_id} - Reason: {nomination_object["reason"]} + Reason: {reason} Nomination ID: `{nomination_object["id"]}` =============== """ @@ -267,7 +269,7 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): Status: Inactive Date: {start_date} Actor: {actor.mention if actor else actor_id} - Reason: {nomination_object["reason"]} + Reason: {reason} End date: {end_date} Unwatch reason: {nomination_object["end_reason"]} |