Explorar el Código

Add debug output to /trans response.

scossu hace 1 año
padre
commit
ea1bf0e9a0
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      scriptshifter/rest_api.py

+ 3 - 1
scriptshifter/rest_api.py

@@ -108,7 +108,9 @@ def transliterate_req():
     except (NotImplementedError, ValueError) as e:
         return (str(e), 400)
 
-    return {"output": out, "warnings": warnings}
+    return {
+            "output": out, "warnings": warnings,
+            "debug": {"form_data": request.form}}
 
 
 @app.route("/feedback", methods=["POST"])