Skip to content
Snippets Groups Projects
Commit 412cba5d authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Fixed line feed and carriage return characters from output

parent f82a2d13
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment