aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-28 09:36:24 +0300
committerGravatar ks129 <[email protected]>2020-05-28 09:36:24 +0300
commite046ac1d764d80a6a04c3c2d70fb8b4d718b6210 (patch)
tree9f46ee083ce2393cb8a579a08dbe5c2003ab9f14 /pydis_site
parentOT: Fix comments (diff)
OT: Rename variable `need_more` to `names_needed`
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/api/viewsets/bot/off_topic_channel_name.py4
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=(