diff --git a/api/pysrlapi/v1/routes.py b/api/pysrlapi/v1/routes.py index e208a4310218ee525398ed85783be8e5ae9acd22..18e9fc1899886bb4e34a71d2b3c9d30cedfbc367 100644 --- a/api/pysrlapi/v1/routes.py +++ b/api/pysrlapi/v1/routes.py @@ -407,11 +407,11 @@ def pkmfilesrl(): try: texts = jmespath.search(access, doc) except jmespath.EmptyExpressionError as e: - message = f"JMESpath serch failed on empty access {access}: {e}" + message = f"JMESpath search failed on empty access {access}: {e}" app.logger.debug(message) log.message(message) except Exception as e: - message = f"JMESpath serch failed on {access}: {e}" + message = f"JMESpath search failed on {access}: {e}" app.logger.debug(message) log.message(message) if texts is None: @@ -443,17 +443,17 @@ def pkmfilesrl(): # TODO implement writing the srl at the right location in the annotations. if debug: - message = f"writing back srl result of project {project_id} and path {urllib.parse.quote(path, safe='')}" + message = f"writing back srl result of project {project_id}" app.logger.debug(message) log.message(message) message = f"result to write is: {result}" app.logger.debug(message) log.message(message) status, res = pkm.call(method="PUT", - path=f"annotations/{project_id}/{urllib.parse.quote(path, safe='')}", + path=f"annotations/{project_id}", payload=[result]) if status != 0: - message = f"Writing back srl result of project {project_id} and path {path} failed" + message = f"Writing back srl result of project {project_id} failed" app.logger.error(message) log.error(message) return send_result(message, 500)