Skip to content

Commit

Permalink
fix:修复由于 API 更新导致 object 模块中部分功能无法使用的问题
Browse files Browse the repository at this point in the history
FHU-yezi committed Aug 25, 2021
1 parent 28d7b0f commit 6ed249e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JianshuResearchTools/objects.py
Original file line number Diff line number Diff line change
@@ -407,7 +407,7 @@ def followers_info(self, page: int = 1, disable_cache: bool = False) -> list:
Returns:
list: 关注者信息
"""
result = HashCache(self._followers_info, user.GetUserFollowersInfo,
result = HashCache(self._followers_info, user.GetUserFollowingInfo,
{"user_url": self._url, "page": page}, disable_cache)
return result

@@ -861,9 +861,9 @@ def author_name(self, disable_cache: bool = False) -> str:
Returns:
str: 作者名
"""
result = SimpleCache(self._author_name, notebook.GetNotebookAuthorName,
result = SimpleCache(self._author_name, notebook.GetNotebookAuthorInfo,
{"notebook_url": self._url}, disable_cache)
return result
return result["name"]

@property
def author_info(self, disable_cache: bool = False) -> dict:
@@ -1104,7 +1104,7 @@ def info_update_time(self, disable_cache: bool = False) -> datetime:
Returns:
datetime: 专题信息更新时间
"""
result = SimpleCache(self._info_update_time, collection.GetCollectionInfoUpdateTime,
result = SimpleCache(self._info_update_time, collection.GetCollectionInformationUpdateTime,
{"collection_url": self._url}, disable_cache)
return result

0 comments on commit 6ed249e

Please sign in to comment.