Only send 6 questions
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import requests
|
import requests
|
||||||
from random import randrange
|
from random import randrange
|
||||||
from collections import namedtuple
|
|
||||||
|
|
||||||
|
|
||||||
MAX_CATEGORIES = 28100
|
MAX_CATEGORIES = 28100
|
||||||
@@ -17,7 +16,7 @@ class Game:
|
|||||||
self.players[sid] = Contestant(signature)
|
self.players[sid] = Contestant(signature)
|
||||||
|
|
||||||
def load_clues(self):
|
def load_clues(self):
|
||||||
while len(self.categories) < 12:
|
while len(self.categories) < 6:
|
||||||
category_id = randrange(MAX_CATEGORIES)
|
category_id = randrange(MAX_CATEGORIES)
|
||||||
r = requests.get(
|
r = requests.get(
|
||||||
'https://jservice.io/api/category?id=%d' % category_id)
|
'https://jservice.io/api/category?id=%d' % category_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user