weex优化完成
This commit is contained in:
Binary file not shown.
@@ -144,7 +144,7 @@ class WeexTransaction:
|
||||
response = self.session.get('https://http-gateway2.elconvo.com/api/v1/public/quote/v1/getKlineV2',
|
||||
params=params, )
|
||||
|
||||
for i in response.json()["data"]:
|
||||
for i in response.json()["data"]["dataList"]:
|
||||
insert_data = {
|
||||
'id': int(i[4]),
|
||||
'open': float(i[3]),
|
||||
@@ -225,7 +225,7 @@ class WeexTransaction:
|
||||
# 将目标 datetime 对象转换为时间戳
|
||||
target_timestamp = target_datetime.timestamp()
|
||||
|
||||
return int(target_timestamp)
|
||||
return int(target_timestamp) * 1000
|
||||
|
||||
def close_extra_tabs_in_browser(self):
|
||||
|
||||
@@ -353,7 +353,7 @@ class WeexTransaction:
|
||||
self.pbar.refresh()
|
||||
|
||||
if current_minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, 35]: # 判断是否是 新的30分钟了
|
||||
# if current_minute not in range(60): # 判断是否是 新的30分钟了
|
||||
# if current_minute not in range(60): # 判断是否是 新的30分钟了
|
||||
time.sleep(10)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user