mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-22 07:51:00 +00:00
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:
|
||||
frontend_argos_language_source = languages[0]
|
||||
if frontend_argos_language_target is None:
|
||||
if languages[1]:
|
||||
if len(languages) >= 2:
|
||||
frontend_argos_language_target = languages[1]
|
||||
else:
|
||||
frontend_argos_language_target = languages[0]
|
||||
|
|
Loading…
Reference in a new issue