Skip to content
Snippets Groups Projects
Commit 5318ee31 authored by Gjorgji's avatar Gjorgji
Browse files

Fixing recc.engine bug - empty dictionaries in kpis

parent 50c90e73
No related branches found
No related tags found
No related merge requests found
......@@ -360,7 +360,7 @@ def plus_one_kpi_change_generator(json_file: Dict, step_size, analysis_limit):
was_it_increased_flag = False
if k == 'simulation_id':
continue
if isinstance(v, dict):
if isinstance(v, dict) and len(v) != 0:
json_file[k] = plus_one_kpi_change_generator(v, step_size, analysis_limit)
for i in json_file[k]:
json_file[k] = i[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment