Added returned type to python backend and frontend

This commit is contained in:
2023-04-19 10:00:46 +02:00
parent 0946982ab6
commit 8c58c493be
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ def process_xml(request: request, type: str) -> str:
elif (type == "xslt"):
response_json['result'] = Parser.xslt(data, process)
elif (type == "xpath"):
response_json['result'] = Parser.xpath(data, process)
response_json['result'], response_json['type'] = Parser.xpath(data, process)
elif (type == "prettify"):
response_json['result'] = Parser.formatXML(data, True)
elif (type == "minimize"):