From 412cba5d3fbdb1621c1002d4becc77586d77ab50 Mon Sep 17 00:00:00 2001
From: Marco Malavolti <marco.malavolti@gmail.com>
Date: Thu, 2 Jul 2020 02:04:44 +0200
Subject: [PATCH] Fixed line feed and carriage return characters from output

---
 api.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/api.py b/api.py
index 733add2..c6b451e 100755
--- a/api.py
+++ b/api.py
@@ -59,10 +59,10 @@ class EccsResults(Resource):
        lines = fo.readlines()
 
        for line in lines:
-          # Remove Carriage Return chars
-          line.rstrip("\n\r")
+          # Strip the line feed and carriage return characters
+          line = line.rstrip("\n\r")
 
-          # Loads json into aux
+          # Loads the json line into aux
           aux = json.loads(line)
 
           aux['date'] = date
-- 
GitLab