Skip to content

Commit

Permalink
0.36.13:
Browse files Browse the repository at this point in the history
    1. alist版本支持到3.36.0
    2. 现在可以使用AlistPath(path, username="", password="", token="")的方式快速登录。
    3. 登录失败现在抛出异常。
    4. #3 Bugfix 为models中的全部可选字段添加默认值。
  • Loading branch information
lee-cq committed Aug 17, 2024
1 parent 93c27e4 commit cc81958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alist_sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Item(BaseModel):
hashinfo: Optional[str] = "null" # v3.29.0
hash_info: Optional[HashInfo | None] = None # v3.29.0
modified: datetime.datetime # 修改时间
created: Optional[datetime.datetime] # v3.29.0 创建时间
created: Optional[datetime.datetime] = None # v3.29.0 创建时间
sign: str # 签名
thumb: str # 缩略图
type: int # 类型
Expand Down Expand Up @@ -154,7 +154,7 @@ class Me(_BaseModel):
disabled: bool
permission: int
sso_id: str | None
otp: Optional[bool]
otp: Optional[bool] = False


class Task(_BaseModel):
Expand Down

0 comments on commit cc81958

Please sign in to comment.