From 5a440d91ab055d35c7a600a5e883ac74f9d56098 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 8 Jan 2020 17:56:11 +0100 Subject: [PATCH] Fixed infentation bug --- api/translation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/translation.py b/api/translation.py index 4c5bd8b..2459db7 100644 --- a/api/translation.py +++ b/api/translation.py @@ -47,5 +47,4 @@ def translate(text: str, lang: str) -> (str, str): if not response.ok: logging.error(f"Failed to contact Yandex API: {response.status_code}") return "" -6 return (response.json()["text"][0], response.json()["lang"]) \ No newline at end of file