Skip to content

Commit 507db3d

Browse files
committed
fixed has_pwd flag error
1 parent 3000e36 commit 507db3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
## `v2.6.1`
3838

3939
- 修复下载某些 txt 文件失败的问题[#53](https://github.com/zaxtyson/LanZouCloud-API/issues/53)
40+
- 修复*判断文件(夹)是否存在提取码*功能异常的问题
4041

4142
## `v2.6.0`
4243

lanzou/api/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def get_dir_list(self, folder_id=-1) -> FolderList:
380380
Folder(
381381
id=int(folder['fol_id']),
382382
name=folder['name'],
383-
has_pwd=True if folder['onof'] == 1 else False,
383+
has_pwd=True if int(folder['onof']) == 1 else False,
384384
desc=folder['folder_des'].strip('[]')
385385
))
386386
return folder_list

0 commit comments

Comments
 (0)