Only send 6 questions

This commit is contained in:
Dane Johnson 2023-02-15 13:35:35 -06:00
parent a310b74e9f
commit ce2ba12ec0

View File

@ -1,6 +1,5 @@
import requests
from random import randrange
from collections import namedtuple
MAX_CATEGORIES = 28100
@ -17,7 +16,7 @@ class Game:
self.players[sid] = Contestant(signature)
def load_clues(self):
while len(self.categories) < 12:
while len(self.categories) < 6:
category_id = randrange(MAX_CATEGORIES)
r = requests.get(
'https://jservice.io/api/category?id=%d' % category_id)