mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-16 04:35:55 +00:00
🐛 修复用户名解析失败
This commit is contained in:
parent
abb83c0cd4
commit
0600c4627d
@ -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"}
|
||||
|
@ -1,4 +1,4 @@
|
||||
pyrogram==2.0.62
|
||||
pyrogram==2.0.63
|
||||
tgcrypto==1.2.5
|
||||
httpx
|
||||
pillow
|
||||
|
Loading…
Reference in New Issue
Block a user