mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-24 10:06:43 +02:00
Use len
This commit is contained in:
parent
0d122c5d53
commit
61a148d692
@ -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 New Issue
Block a user