~metalune/simplytranslate_web

64239e8355ffad2750f4bc89f7e6c2079320b899 — Alexey Yerin 4 months ago b92d2e0
Remove redundant await

Going to /translate/$from/$to/$text/ crashes with 500 because string
can't be awaited.
1 files changed, 1 insertions(+), 1 deletions(-)

M main.py
M main.py => main.py +1 -1
@@ 16,7 16,7 @@ def to_short_name(long_name, supported_languages):
    "/translate/<string:from_language>/<string:to_language>/<string:input_text>/"
)
async def translate(from_language, to_language, input_text):
    return await gtranslate.translate(
    return gtranslate.translate(
        input_text, from_language=from_language, to_language=to_language
    )