Skip to content

Commit

Permalink
fix: station avatar image
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Mar 27, 2024
1 parent b37691c commit 66cbb25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class YattaMaterial(BaseModel):
"""名称"""
description: str
"""描述"""
story: str
story: Optional[str] = None
"""故事"""
rank: int
"""稀有度"""
Expand Down
2 changes: 1 addition & 1 deletion res_func/avatar.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_third_pic():
return f'{style[style.find("(") + 1:style.find(")")]}'

third_pic = get_third_pic()
text = soup.find("div", {"class": "a6678 a4af5"}).get("style")
text = soup.find_all("div", {"class": "a4af5"})[1].get("style")
four_pic = f'{text[text.find("(") + 2:text.find(")") - 1]}' if text else ""
first_pic = f'{soup.find("img", {"class": "ac39b a6602"}).get("src")}'
datas.append(
Expand Down

0 comments on commit 66cbb25

Please sign in to comment.