From 50c90e73fe06b2174662e16167922b78b7ab118b Mon Sep 17 00:00:00 2001
From: Gjorgji <g.noveski@yahoo.com>
Date: Mon, 8 May 2023 12:32:40 +0200
Subject: [PATCH] Fixing recommendation text

---
 app/api/dexi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/api/dexi.py b/app/api/dexi.py
index 1edeb19..276c26d 100644
--- a/app/api/dexi.py
+++ b/app/api/dexi.py
@@ -184,7 +184,7 @@ 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 ""
-    return f'In order to improve the KPI of {kpi} by {int(amount_changed)*10}%, {caused_by} should be improved by {step_size*10}%\n'
+    return f'In order to improve the KPI of {kpi} by {int(amount_changed)*10}%, {caused_by} should be improved by {step_size*10}%.\n'
 
 
 @app.route("/dss/get_specific_recommendation", methods=["GET"])
-- 
GitLab