jiarongqiu commited on
Commit
dc08fc3
·
1 Parent(s): e87b320
Files changed (1) hide show
  1. service/api.py +1 -1
service/api.py CHANGED
@@ -79,7 +79,7 @@ class API():
79
  data = None
80
  try:
81
  response = requests.get(url, headers=headers)
82
- data = json.loads(response.text)['data'][-1]['total_inflow_fil']
83
  except Exception as e:
84
  print(e)
85
  return data
 
79
  data = None
80
  try:
81
  response = requests.get(url, headers=headers)
82
+ data = round(json.loads(response.text)['data'][-1]['total_inflow_fil'],1)
83
  except Exception as e:
84
  print(e)
85
  return data