Skip to content

Commit b2426e1

Browse files
feat(yars): update template for AoC
1 parent bacf04b commit b2426e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

yasr.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
AOC_TEMPLATE = """
1616
import aoc_api
1717
18-
day_input = aoc_api.get_input(5).strip()
18+
day_input = aoc_api.get_input({day}).strip()
1919
print(day_input)
2020
2121
@@ -31,8 +31,10 @@ def p2():
3131
...
3232
3333
34-
print(p1())
35-
print(p2())
34+
if __name__ == '__main__':
35+
print(p1())
36+
print(p2())
37+
3638
"""
3739

3840

0 commit comments

Comments
 (0)