Skip to content

Commit 2318c4f

Browse files
committed
Include download of example data
1 parent f01620b commit 2318c4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/download_input.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ def download(year, day):
2626
output_path = next(year_path.glob(f"{day:02d}*")) / "input.txt"
2727
output_path.write_text(puzzle.input_data)
2828

29+
# Download example data
30+
output_path = output_path.with_stem("example1")
31+
output_path.write_text(puzzle.example_data)
32+
2933
# Add README with link to puzzle text
3034
readme_path = output_path.with_name("README.md")
3135
readme_path.write_text(

0 commit comments

Comments
 (0)