diff options
author | 2021-10-29 03:19:37 +0400 | |
---|---|---|
committer | 2021-10-29 03:19:37 +0400 | |
commit | 367c01a7b3cd5cc5ee25644ae92f917ceb00562c (patch) | |
tree | 3be351f403e75d56eb7b08a5e20aa432b2a64ec5 /pydis_site/apps/api/models/bot | |
parent | Merge pull request #617 from python-discord/mbaruh-patch-1 (diff) |
Adds Failures Field To Reminders
Adds an integer field to reminders, to keep track of how many failed
attempts at delivering the reminder were made.
Updates documentation and serialization.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r-- | pydis_site/apps/api/models/bot/reminder.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/reminder.py b/pydis_site/apps/api/models/bot/reminder.py index 7d968a0e..173900ee 100644 --- a/pydis_site/apps/api/models/bot/reminder.py +++ b/pydis_site/apps/api/models/bot/reminder.py @@ -59,6 +59,10 @@ class Reminder(ModelReprMixin, models.Model): blank=True, help_text="IDs of roles or users to ping with the reminder." ) + failures = models.IntegerField( + default=0, + help_text="Number of times we attempted to send the reminder and failed." + ) def __str__(self): """Returns some info on the current reminder, for display purposes.""" |