add workflow 天润Smart-ccc会话数据,dev

This commit is contained in:
root 2024-07-03 13:50:13 +08:00
parent 92c0b66998
commit 2bff854eca
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,8 @@ if __name__ == "__main__":
if 'records' in resD:
ids.append(id)
dataList = resD['records']
detailDataList.append(dataList)
# detailDataList.append(dataList)
detailDataList = detailDataList+dataList
else:
error = resD['error']
print(f"请求会话详情id:{id})失败,错误信息:{error}")
@ -207,5 +208,6 @@ if __name__ == "__main__":
load_detail_exp_to_db(data['id'])
if len(ids) > 0:
ids_str = [str(item) for item in ids]
print(f'会话详情{ids_str}')
load_detail_data_to_db(ids_str,detailDataList)
print(f'{formatted2_previous_hour(0)}请求会话信息结束')