aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models/bot
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2023-02-11 13:32:46 +0200
committerGravatar mbaruh <[email protected]>2023-02-11 13:32:46 +0200
commit4eecda92e16ffe97fabb5d2e07790357140f7bbb (patch)
tree667c430024b972abef860cb9ea5dae25bce5cac1 /pydis_site/apps/api/models/bot
parentUpdate viewsets, fix linting (diff)
Fix documentation and import
Co-authored-by: wookie184 <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r--pydis_site/apps/api/models/bot/filters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pydis_site/apps/api/models/bot/filters.py b/pydis_site/apps/api/models/bot/filters.py
index 1eab79ba..584ee726 100644
--- a/pydis_site/apps/api/models/bot/filters.py
+++ b/pydis_site/apps/api/models/bot/filters.py
@@ -52,7 +52,7 @@ class FilterList(ModelTimestampMixin, ModelReprMixin, models.Model):
)
infraction_duration = models.DurationField(
null=False,
- help_text="The duration of the infraction. Null if permanent."
+ help_text="The duration of the infraction. 0 for permanent."
)
infraction_channel = models.BigIntegerField(
validators=(
@@ -165,7 +165,7 @@ class FilterBase(ModelTimestampMixin, ModelReprMixin, models.Model):
)
infraction_duration = models.DurationField(
null=True,
- help_text="The duration of the infraction. Null if permanent."
+ help_text="The duration of the infraction. 0 for permanent."
)
infraction_channel = models.BigIntegerField(
validators=(
@@ -209,7 +209,6 @@ class FilterBase(ModelTimestampMixin, ModelReprMixin, models.Model):
null=True
)
- # Check FilterList model for information about these properties.
enabled_channels = ArrayField(
models.CharField(max_length=100),
help_text="Channels in which to run the filter even if it's disabled in the category.",