From 2744e8eca5da1be4e9ed2e440a520c27bfcd6976 Mon Sep 17 00:00:00 2001 From: jsheckar <jsheckar@nrao.edu> Date: Mon, 15 Aug 2022 15:26:51 -0600 Subject: [PATCH] uniform_weblog_digging: Nobody breathe, it's behaving right now --- services/workflow/workflow/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/workflow/workflow/server.py b/services/workflow/workflow/server.py index e5a8124b8..e42d8d5cf 100644 --- a/services/workflow/workflow/server.py +++ b/services/workflow/workflow/server.py @@ -202,7 +202,7 @@ class WorkflowWorkingDirRestService: ) qa_notes_text = "" - with open(str(qa_notes_path), "r") as qa_notes: + with open(qa_notes_path, "r") as qa_notes: qa_notes_text = qa_notes.read() return Response(status_int=http.HTTPStatus.OK, json_body={"resp": f"{qa_notes_text}"}) @@ -223,7 +223,7 @@ class WorkflowWorkingDirRestService: }, ) - with open(str(qa_notes_path), "w") as qa_notes: + with open(qa_notes_path, "w") as qa_notes: # sanitize input before writing/persisting # \\u0000 is an invalid character that is incompatible with postgres json columns # from StackOverflow: https://stackoverflow.com/questions/63092267/how-to-handle-api-responsesjson-containing-x00-or-u0000-in-its-data-and-s -- GitLab