We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad1695 commit 993bf0fCopy full SHA for 993bf0f
make_dataset.py
@@ -68,14 +68,14 @@ def save_readme(gen_modules, filename):
68
if len(puzzle['sols']) > 0:
69
section += "<details><summary>"
70
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 ''}"
+ section += f"to {sec_name} {i + 1:,}/{n:,}"
73
74
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:
+ for sol in puzzle['sols']:
+ section += f"```python\n{sol}\n```\n\n"
78
section += "</details>\n\n"
+ else:
+ section += "\n\n"
79
80
content += section
81
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments