Skip to content

Commit

Permalink
fix: 修复weibo遗漏uid变量名修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Dec 11, 2024
1 parent 1042e84 commit a9781a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion f2/apps/weibo/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def handler_download(
if kwargs.get("folderize")
else user_path
)
self.user_id = weibo_data_dict.get("uid")
self.uid = weibo_data_dict.get("uid")
self.weibo_id = weibo_data_dict.get("weibo_id")
self.kwargs = kwargs
self.weibo_data_dict = weibo_data_dict
Expand Down
2 changes: 1 addition & 1 deletion f2/apps/weibo/test/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def test_fetch_user_info(kwargs_fixture):
handler = WeiboHandler(kwargs_fixture)
user_info = await handler.fetch_user_info(uid="2265830070")
assert user_info is not None
assert user_info.user_id == "2265830070"
assert user_info.uid == "2265830070"


@pytest.mark.asyncio
Expand Down

0 comments on commit a9781a9

Please sign in to comment.