diff options
author | 2020-05-28 09:36:24 +0300 | |
---|---|---|
committer | 2020-05-28 09:36:24 +0300 | |
commit | e046ac1d764d80a6a04c3c2d70fb8b4d718b6210 (patch) | |
tree | 9f46ee083ce2393cb8a579a08dbe5c2003ab9f14 | |
parent | OT: Fix comments (diff) |
OT: Rename variable `need_more` to `names_needed`
-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=( |