mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
Fix tab
This commit is contained in:
parent
9bc342a9ae
commit
48464938cb
1 changed files with 1 additions and 1 deletions
|
@ -767,7 +767,7 @@ def create_app(args):
|
|||
# roughly equivalent to a batch process of N batches assuming
|
||||
# each batch uses all available limits
|
||||
if args.char_limit != -1:
|
||||
request.req_cost = max(1, int(os.path.getsize(filepath) / args.char_limit))
|
||||
request.req_cost = max(1, int(os.path.getsize(filepath) / args.char_limit))
|
||||
|
||||
translated_file_path = argostranslatefiles.translate_file(src_lang.get_translation(tgt_lang), filepath)
|
||||
translated_filename = os.path.basename(translated_file_path)
|
||||
|
|
Loading…
Reference in a new issue