fix null check

This commit is contained in:
Cyberes 2023-04-21 23:54:18 -06:00
parent aea52d15bf
commit 12a2ccf145
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ def get_waiting_for_db(api_key, interval, data_range, endpoint):
for i in range(len(raw_data)):
if raw_data[i] is not None:
data.append(raw_data[i])
else:
null_present = True
return np.round(np.average(data), 5), null_present, raw_data