From 507db3d11eda8a13c51c7a831b84c8e98e36f8a6 Mon Sep 17 00:00:00 2001 From: zaxtyson Date: Wed, 3 Mar 2021 20:09:27 +0800 Subject: [PATCH] fixed has_pwd flag error --- README.md | 1 + lanzou/api/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8559b3b..ec62f83 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ ## `v2.6.1` - 修复下载某些 txt 文件失败的问题[#53](https://github.com/zaxtyson/LanZouCloud-API/issues/53) +- 修复*判断文件(夹)是否存在提取码*功能异常的问题 ## `v2.6.0` diff --git a/lanzou/api/core.py b/lanzou/api/core.py index a5e6c02..31cfe47 100644 --- a/lanzou/api/core.py +++ b/lanzou/api/core.py @@ -380,7 +380,7 @@ def get_dir_list(self, folder_id=-1) -> FolderList: Folder( id=int(folder['fol_id']), name=folder['name'], - has_pwd=True if folder['onof'] == 1 else False, + has_pwd=True if int(folder['onof']) == 1 else False, desc=folder['folder_des'].strip('[]') )) return folder_list