Skip to content

Commit b6c5744

Browse files
committed
breaking: rename get_blogs_time
1 parent 6fbe5a0 commit b6c5744

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ with the exception that all versions are currently `0.x.x` and may include break
1111

1212
### Added
1313

14-
- Use response headers to determine whether to parse HTTP responses into JSON
1514
- Added possibility for additional headers and proxies (handled by requests lib)
16-
- get() can also return `list` type as JSON can also be a list
1715
- Documentation for all functions
1816

17+
### Breaking Changes
18+
19+
- Renamed get_blogs_time() to get_blogs_for_year_month()
20+
1921
### Changed
2022

21-
`N/A`
23+
- Use response headers to determine whether to parse HTTP responses into JSON
24+
- get() can also return `list` type as JSON can also be a list
2225

2326
### Fixed
2427

src/hytale/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .blogs import get_blog, get_blogs, get_blogs_time
1+
from .blogs import get_blog, get_blogs, get_blogs_for_year_month
22
from .media import (
33
get_concept_arts,
44
get_desktop_wallpapers,
@@ -20,7 +20,7 @@
2020
__all__ = [
2121
"get_blogs",
2222
"get_blog",
23-
"get_blogs_time",
23+
"get_blogs_for_year_month",
2424
"BlogPostExcerpt",
2525
"BlogPost",
2626
"CoverImage",

src/hytale/blogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_blog(slug: str) -> BlogPost:
2929
return BlogPost.from_dict(data)
3030

3131

32-
def get_blogs_time(year: int, month: int) -> list[BlogPostExcerpt]:
32+
def get_blogs_for_year_month(year: int, month: int) -> list[BlogPostExcerpt]:
3333
"""Get the most recent blogs within a year and month
3434
3535
Args:

0 commit comments

Comments
 (0)