mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-03-15 07:10:15 +01:00
Fixed accidental format break
This commit is contained in:
parent
82bafa1925
commit
3d9ba063ce
@ -90,10 +90,12 @@ class Themis:
|
|||||||
|
|
||||||
return session
|
return session
|
||||||
|
|
||||||
def get_year(self, year_path: str) -> Year:
|
def get_year(self, start_year: int = None, end_year: int = None) -> Year:
|
||||||
"""
|
"""
|
||||||
Gets a Year object using the year path (e.g., '2023-2024').
|
Gets a Year object using the year path (e.g., 2023, 2024).
|
||||||
"""
|
"""
|
||||||
|
year_path = f"{start_year}-{end_year}"
|
||||||
|
|
||||||
return Year(self.session, year_path)
|
return Year(self.session, year_path)
|
||||||
|
|
||||||
def all_years(self) -> list:
|
def all_years(self) -> list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user