Skip to content

Commit 993bf0f

Browse files
committed
Tweaked README
1 parent 6ad1695 commit 993bf0f

File tree

2 files changed

+336
-314
lines changed

2 files changed

+336
-314
lines changed

make_dataset.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ def save_readme(gen_modules, filename):
6868
if len(puzzle['sols']) > 0:
6969
section += "<details><summary>"
7070
section += f"{len(puzzle['sols'])} solution{'s' if len(puzzle['sols'])!=1 else ''} "
71-
section += f"to puzzle {link} {i + 1:,}/{n:,}"
72-
section += f", {puzzle['n_instances']:,} instance{'s' if puzzle['n_instances'] > 1 else ''}"
71+
section += f"to {sec_name} {i + 1:,}/{n:,}"
7372
if len(puzzle['sols']) > 0:
7473
section += "</summary>\n\n"
75-
for sol in puzzle['sols']:
76-
section += f"```python\n{sol}\n```\n\n"
77-
if len(puzzle['sols']) > 0:
74+
for sol in puzzle['sols']:
75+
section += f"```python\n{sol}\n```\n\n"
7876
section += "</details>\n\n"
77+
else:
78+
section += "\n\n"
7979

8080
content += section
8181

0 commit comments

Comments
 (0)