handle get history Q and H data

This commit is contained in:
xinzish
2024-04-12 18:12:58 +08:00
parent 44e487f85f
commit 330248041f
4 changed files with 34 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ def get_realValue(ids)->dict[str,float]:
#print("datadt (Beijing Time):", beijing_time.strftime('%Y-%m-%d %H:%M:%S'))
#print("realValue:", realValue['realValue'])
#print() # 打印空行分隔不同条目
r=float(realValue['value'])
r=float(realValue['realValue'])
lst_data[str(realValue['id'])]=r
else:
# 如果请求不成功,打印错误信息