if not len(puzzles):
text = "No puzzles found."
if puzzle_status != 'all':
text += ' (Consider searching for "all" puzzles?)'
if not len(puzzles):
text = "No puzzles found."
if puzzle_status != 'all':
text += ' (Consider searching for "all" puzzles?)'
continue
# If we're only displaying one round the round header is redundant
if limit_to_rounds and len(limit_to_rounds) == 1:
continue
# If we're only displaying one round the round header is redundant
if limit_to_rounds and len(limit_to_rounds) == 1:
- blocks += round_blocks(round, puzzles)
- blocks.append(divider_block())
+ block += round_blocks(round, puzzles)
+ block.append(divider_block())
+ blocks.append([])
+ block = blocks[-1]
# Also blocks for any puzzles not in any round
stray_puzzles = [puzzle for puzzle in puzzles if 'rounds' not in puzzle]
# Also blocks for any puzzles not in any round
stray_puzzles = [puzzle for puzzle in puzzles if 'rounds' not in puzzle]
# to rounds but specifically the round of unassigned puzzles
if len(stray_puzzles) and not limit_to_rounds:
stray_text = "*Puzzles with no assigned round*"
# to rounds but specifically the round of unassigned puzzles
if len(stray_puzzles) and not limit_to_rounds:
stray_text = "*Puzzles with no assigned round*"