From a9781a95ea796d99ccc87cabd60cec941c911ec0 Mon Sep 17 00:00:00 2001 From: JohnserfSeed Date: Thu, 12 Dec 2024 01:18:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dweibo=E9=81=97?= =?UTF-8?q?=E6=BC=8Fuid=E5=8F=98=E9=87=8F=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- f2/apps/weibo/dl.py | 2 +- f2/apps/weibo/test/test_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/f2/apps/weibo/dl.py b/f2/apps/weibo/dl.py index 9356484..109a166 100644 --- a/f2/apps/weibo/dl.py +++ b/f2/apps/weibo/dl.py @@ -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 diff --git a/f2/apps/weibo/test/test_handler.py b/f2/apps/weibo/test/test_handler.py index d03a604..d296f92 100644 --- a/f2/apps/weibo/test/test_handler.py +++ b/f2/apps/weibo/test/test_handler.py @@ -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