From ce2ba12ec0311cede223d3d0d3f80c645f275417 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 15 Feb 2023 13:35:35 -0600 Subject: [PATCH] Only send 6 questions --- venture/game.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/venture/game.py b/venture/game.py index 44a6ce4..b4f7048 100644 --- a/venture/game.py +++ b/venture/game.py @@ -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)