fix len
This commit is contained in:
parent
e5e4bba051
commit
57dda6121b
|
@ -312,7 +312,7 @@ def get_waiting_for_db(api_key, interval, data_range, endpoint):
|
||||||
response = requests.post(f'{endpoint}/api/ds/query', headers={'Authorization': f'Bearer {api_key}'}, json=json_data, verify=False).json()
|
response = requests.post(f'{endpoint}/api/ds/query', headers={'Authorization': f'Bearer {api_key}'}, json=json_data, verify=False).json()
|
||||||
data = response['results']['A']['frames'][0]['data']['values'][1]
|
data = response['results']['A']['frames'][0]['data']['values'][1]
|
||||||
null_present = False
|
null_present = False
|
||||||
for i in range(data):
|
for i in range(len(data)):
|
||||||
if data[i] is None:
|
if data[i] is None:
|
||||||
data[i] = -1
|
data[i] = -1
|
||||||
null_present = True
|
null_present = True
|
||||||
|
|
Loading…
Reference in New Issue