about summary refs log tree commit diff
path: root/gn3/api/general.py
diff options
context:
space:
mode:
authorAlexander_Kabui2024-12-04 13:20:16 +0300
committerAlexander_Kabui2024-12-04 13:20:16 +0300
commitea084cad16b660d74922f6ba81962c6fb3ad405e (patch)
treeb337969f5f1a806d04fb98f36b386ec97c74d535 /gn3/api/general.py
parent5c6d3befdea924eb9f6df3d2d4199a5dd8be9522 (diff)
downloadgenenetwork3-ea084cad16b660d74922f6ba81962c6fb3ad405e.tar.gz
refactor: make pylint fixes.
Diffstat (limited to 'gn3/api/general.py')
-rw-r--r--gn3/api/general.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/general.py b/gn3/api/general.py
index fcaf21b..8b57f23 100644
--- a/gn3/api/general.py
+++ b/gn3/api/general.py
@@ -91,7 +91,7 @@ def stream():
     output_file = os.path.join(current_app.config.get("TMPDIR"),
                                f"{run_id}.txt")
     seek_position = int(request.args.get("peak", 0))
-    with open(output_file) as file_handler:
+    with open(output_file, encoding="utf-8") as file_handler:
         # read to the last position default to 0
         file_handler.seek(seek_position)
         return jsonify({"data": file_handler.readlines(),