Only send 6 questions
This commit is contained in:
parent
a310b74e9f
commit
ce2ba12ec0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user