Skip to content

Commit c4f29b4

Browse files
committed
bug in daily double distribution, not using number of rows
1 parent 158de58 commit c4f29b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jeopardy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def generate_daily_double_positions(questions):
408408
# but with some minimal probability of row 1 being a daily double added in
409409
DAILY_DOUBLE_ROW_STATISTIC = [1, 53, 119, 170, 109]
410410
daily_double_distrib = []
411-
num_rows = len(questions[0])
411+
num_rows = len(questions[0]["questions"])
412412
for i, stat in enumerate(DAILY_DOUBLE_ROW_STATISTIC):
413413
if i == num_rows:
414414
break

0 commit comments

Comments
 (0)