forked from mirrors/LibreTranslate
Use len
This commit is contained in:
parent
0d122c5d53
commit
61a148d692
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def create_app(args):
|
||||||
if frontend_argos_language_source is None:
|
if frontend_argos_language_source is None:
|
||||||
frontend_argos_language_source = languages[0]
|
frontend_argos_language_source = languages[0]
|
||||||
if frontend_argos_language_target is None:
|
if frontend_argos_language_target is None:
|
||||||
if languages[1]:
|
if len(languages) >= 2:
|
||||||
frontend_argos_language_target = languages[1]
|
frontend_argos_language_target = languages[1]
|
||||||
else:
|
else:
|
||||||
frontend_argos_language_target = languages[0]
|
frontend_argos_language_target = languages[0]
|
||||||
|
|
Loading…
Reference in a new issue