diff options
Diffstat (limited to 'pydis_site/apps')
| -rw-r--r-- | pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py b/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py index c4520a48..1099922c 100644 --- a/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py +++ b/pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py @@ -117,10 +117,10 @@ class OffTopicChannelNameViewSet(DestroyModelMixin, ViewSet):              # we reset all names to used=False and start a new round of names.              if len(queryset) < random_count:                  # Figure out how many additional names we need, and don't fetch duplicate names. -                need_more = random_count - len(queryset) +                names_needed = random_count - len(queryset)                  ext = self.get_queryset().order_by('?').exclude(                      name__in=(query.name for query in queryset) -                )[:need_more] +                )[:names_needed]                  # Reset the `used` field to False for all names except the ones we just used.                  self.get_queryset().exclude(name__in=(  |