remove some prints
All checks were successful
/ test (push) Successful in 9m21s

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-07-02 14:05:01 +02:00
parent f79c1c88ca
commit 517c77653d

View file

@ -39,7 +39,7 @@ def get_data(ts_start: int, ts_end: int, device_id: str, module_id: str, metrics
data = response.json()['body'] data = response.json()['body']
for el in data: for el in data:
print("\n\n") #print("\n\n")
ts = el['beg_time'] ts = el['beg_time']
for vals in el['value']: for vals in el['value']:
for ielem in range(len(vals)): for ielem in range(len(vals)):
@ -49,7 +49,7 @@ def get_data(ts_start: int, ts_end: int, device_id: str, module_id: str, metrics
res_vals = res.get(metric, {}) res_vals = res.get(metric, {})
res_vals[ts] = val res_vals[ts] = val
res[metric] = res_vals res[metric] = res_vals
print(f'{ts}: {metric} = {val}') #print(f'{ts}: {metric} = {val}')
if 'step_time' in el: if 'step_time' in el:
ts += el['step_time'] ts += el['step_time']
else: else: