🐛 修复用户名解析失败

This commit is contained in:
xtaodada 2022-11-30 21:30:37 +08:00
parent abb83c0cd4
commit 0600c4627d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def parse_user(username: str, html: str) -> UserName:
user.now_price = Price(ton=int(soup.find(
"div", {"class": "table-cell-value tm-value icon-before icon-ton"}
).getText().replace(",", "")))
elif user.status == [AuctionStatus.OnAuction, AuctionStatus.Sale]:
elif user.status in [AuctionStatus.OnAuction, AuctionStatus.Sale]:
info = soup.find("div", {"class": "tm-section-box tm-section-bid-info"})
user.now_price = Price(ton=int(info.find(
"div", {"class": "table-cell-value tm-value icon-before icon-ton"}

View File

@ -1,4 +1,4 @@
pyrogram==2.0.62
pyrogram==2.0.63
tgcrypto==1.2.5
httpx
pillow