🐛 修复描述为空

This commit is contained in:
xtaodada 2022-11-06 14:24:06 +08:00
parent 2f29ff7e7e
commit 0e46857c8c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -13,7 +13,7 @@ class Release:
def __init__(self, data: dict): def __init__(self, data: dict):
self.name: str = data["name"] self.name: str = data["name"]
self.url: str = data["url"] self.url: str = data["url"]
self.description: str = data["description"] self.description: str = data.get("description", "")
self.publishedAt: str = strf_time(data["publishedAt"]) self.publishedAt: str = strf_time(data["publishedAt"])
self.publishedAtTime: datetime = strp_time(data["publishedAt"]) self.publishedAtTime: datetime = strp_time(data["publishedAt"])
self.tagName: str = data["tagName"] self.tagName: str = data["tagName"]