File tree Expand file tree Collapse file tree 6 files changed +228
-84
lines changed
Expand file tree Collapse file tree 6 files changed +228
-84
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function inst_py()
3838 inst_bin /usr/bin/python3
3939 elif [[ $version == default ]] || [[ $version == env ]] ; then
4040 inst_bin python3
41- elif [[ ! $version =~ 3\. .* ]] ; then
41+ elif [[ ! $version =~ 3\. .* ]] || [[ -f $version ]] ; then
4242 inst_bin $version
4343 else
4444 local venv=${AOC_TARGET_DIR:- target} /venv/py$version
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ def aoc_available_days(year: int):
8383 """
8484 Generator over all available days for the given year.
8585 """
86- for year in aoc_available_puzzles_dict ().get (year , []):
87- yield year
86+ for day in aoc_available_puzzles_dict ().get (year , []):
87+ yield day
8888
8989
9090def aoc_available_puzzles (filter_year : int = 0 ):
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def aoc_available_days(year: int):
9191 """
9292 Generator over all available days for the given year.
9393 """
94- for year in aoc_available_puzzles_dict ().get (year , []):
95- yield year
94+ for day in aoc_available_puzzles_dict ().get (year , []):
95+ yield day
9696
9797
9898def aoc_available_puzzles (filter_year : int = 0 ):
You can’t perform that action at this time.
0 commit comments