From 76eeafce201c98f71d18ea77e4aff99fb2db8a7f Mon Sep 17 00:00:00 2001 From: Boyan Date: Mon, 18 Nov 2024 20:31:37 +0100 Subject: [PATCH] Fixed small bug --- .gitignore | 1 + temmies_cli/commands/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: