diff --git a/.gitignore b/.gitignore index 394c504..b785f5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ setup.py +.pypi # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/temmies_cli/commands/utils.py b/temmies_cli/commands/utils.py index 65ad614..44a58a7 100644 --- a/temmies_cli/commands/utils.py +++ b/temmies_cli/commands/utils.py @@ -14,7 +14,7 @@ def parse_path(themis, path_str): year_path, course_tag = parts[0], parts[1] remaining_parts = parts[2:] - year = themis.get_year(year_path) + year = themis.get_year(int(year_path.split('-')[0]), int(year_path.split('-')[1])) course = year.get_course_by_tag(course_tag) if remaining_parts: