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

Removes 1 in RE text

parent 7addf435
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,8 @@ def create_recommendation_text(kpi, amount_changed, caused_by, step_size):
return ""
if 'co2' in caused_by.replace(' ', '').lower() and 'co2' in kpi.replace(' ', '').lower():
return ""
if amount_changed < 0:
amount_changed *= -1
return f'In order to change the KPI of {kpi} by {int(amount_changed)*10}%, {caused_by} should be improved by {step_size*10}%.\n'
......
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