Skip to content

Commit

Permalink
fixed has_pwd flag error
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtyson committed Mar 3, 2021
1 parent 3000e36 commit 507db3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
## `v2.6.1`

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

## `v2.6.0`

Expand Down
2 changes: 1 addition & 1 deletion lanzou/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 507db3d

Please sign in to comment.