|
@@ -47,9 +47,9 @@ number_chars_obj = {
|
|
|
|
|
|
|
|
|
|
activities_columns = ['tokenaddress', 'tokenname', 'last_active',
|
|
activities_columns = ['tokenaddress', 'tokenname', 'last_active',
|
|
- 'profit_eth', 'profit_percent',
|
|
|
|
- 'buy_eth', 'sell_eth',
|
|
|
|
- '30d_txns_buy','30d_txns_sell', ]
|
|
|
|
|
|
+ 'profit_eth', 'profit_percent', 'buy_eth',
|
|
|
|
+ 'sell_eth', '30d_txns_buy','30d_txns_sell',
|
|
|
|
+ 'is_warning' ]
|
|
|
|
|
|
|
|
|
|
async def check_tbody_isfull(page ,str_dalaoaddress):
|
|
async def check_tbody_isfull(page ,str_dalaoaddress):
|
|
@@ -222,14 +222,14 @@ async def get_tbody_data(page, str_dalaoaddress):
|
|
break
|
|
break
|
|
if(idx_tr_ %20==0):
|
|
if(idx_tr_ %20==0):
|
|
print(f"get_tbody_data {str_dalaoaddress} {idx_tr_}")
|
|
print(f"get_tbody_data {str_dalaoaddress} {idx_tr_}")
|
|
- arr_tds_datares = [None]*9
|
|
|
|
|
|
+ arr_tds_datares = [None]*10
|
|
arr_trs_datares.append(arr_tds_datares)
|
|
arr_trs_datares.append(arr_tds_datares)
|
|
|
|
|
|
|
|
|
|
tr_ = arr_trs[idx_tr_]
|
|
tr_ = arr_trs[idx_tr_]
|
|
listen_tr_ = tr_
|
|
listen_tr_ = tr_
|
|
arr_tds = await tr_.locator('td').all()
|
|
arr_tds = await tr_.locator('td').all()
|
|
- is_warning = False
|
|
|
|
|
|
+ is_warning = 0
|
|
# 共有10列
|
|
# 共有10列
|
|
# 'Token/Last Active', 'Unrealized', '30D Realized Profit',
|
|
# 'Token/Last Active', 'Unrealized', '30D Realized Profit',
|
|
# 'Total Profit', 'Balance',
|
|
# 'Total Profit', 'Balance',
|
|
@@ -278,7 +278,7 @@ async def get_tbody_data(page, str_dalaoaddress):
|
|
|
|
|
|
g_warning = td_.locator('g[clip-path="url(#clip0_6068_12422)"]')
|
|
g_warning = td_.locator('g[clip-path="url(#clip0_6068_12422)"]')
|
|
if (await g_warning.count()) != 0:
|
|
if (await g_warning.count()) != 0:
|
|
- is_warning = True
|
|
|
|
|
|
+ is_warning = 1
|
|
|
|
|
|
arr_tds_datares[0] = str_tokenaddress
|
|
arr_tds_datares[0] = str_tokenaddress
|
|
arr_tds_datares[1] = str_tokenname
|
|
arr_tds_datares[1] = str_tokenname
|
|
@@ -326,7 +326,7 @@ async def get_tbody_data(page, str_dalaoaddress):
|
|
|
|
|
|
arr_tds_datares[3] = str_profit_sol
|
|
arr_tds_datares[3] = str_profit_sol
|
|
arr_tds_datares[4] = str( round ( ( float(str_profit_percent) /100),2) )
|
|
arr_tds_datares[4] = str( round ( ( float(str_profit_percent) /100),2) )
|
|
- if is_warning ==True:
|
|
|
|
|
|
+ if is_warning ==1:
|
|
arr_tds_datares[4]="-1"
|
|
arr_tds_datares[4]="-1"
|
|
|
|
|
|
|
|
|
|
@@ -396,6 +396,8 @@ async def get_tbody_data(page, str_dalaoaddress):
|
|
|
|
|
|
arr_tds_datares[7] = str_buy_txns
|
|
arr_tds_datares[7] = str_buy_txns
|
|
arr_tds_datares[8] = str_sell_txns
|
|
arr_tds_datares[8] = str_sell_txns
|
|
|
|
+ arr_tds_datares[9] = is_warning
|
|
|
|
+
|
|
|
|
|
|
return arr_trs_datares
|
|
return arr_trs_datares
|
|
|
|
|