🐛[bugfix] Model : deepl authkey 削除時に 翻訳エンジンの"DeepL_API"が削除されない問題を修正
This commit is contained in:
2
model.py
2
model.py
@@ -123,7 +123,7 @@ class Model:
|
|||||||
if source_lang in languages and target_lang in languages:
|
if source_lang in languages and target_lang in languages:
|
||||||
compatible_engines.append(engine)
|
compatible_engines.append(engine)
|
||||||
if "DeepL_API" in compatible_engines:
|
if "DeepL_API" in compatible_engines:
|
||||||
if self.translator.deepl_client is None:
|
if config.AUTH_KEYS["DeepL_API"] is None:
|
||||||
compatible_engines.remove('DeepL_API')
|
compatible_engines.remove('DeepL_API')
|
||||||
return compatible_engines
|
return compatible_engines
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user