Browse Source

Fix Dicta input.

scossu 4 months ago
parent
commit
add207b7ce
1 changed files with 2 additions and 3 deletions
  1. 2 3
      scriptshifter/hooks/hebrew/dicta_api.py

+ 2 - 3
scriptshifter/hooks/hebrew/dicta_api.py

@@ -1,4 +1,3 @@
-from json import dumps
 from os import environ
 
 from requests import post
@@ -17,10 +16,10 @@ def s2r_post_config(ctx):
     ctx.warnings = []
     rsp = post(
             EP,
-            data=dumps({
+            data={
                 "data": ctx.src,
                 "genre": ctx.options.get("genre", DEFAULT_GENRE)
-            }))
+            })
     rsp.raise_for_status()
 
     rom = rsp.json().get("transliteration")