mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 12:24:52 +00:00
cleanup: Whitespaces and imports
- Remove unnecessary import - Reorder imports - Fix whitespace issues
This commit is contained in:
parent
933c96914b
commit
2ddb415bba
6 changed files with 15 additions and 7 deletions
|
@ -3,18 +3,20 @@ import os
|
|||
import tempfile
|
||||
import uuid
|
||||
from functools import wraps
|
||||
from html import unescape
|
||||
|
||||
import argostranslatefiles
|
||||
from argostranslatefiles import get_supported_formats
|
||||
from flask import Flask, abort, jsonify, render_template, request, url_for, send_file
|
||||
from flask import (Flask, abort, jsonify, render_template, request, send_file,
|
||||
url_for)
|
||||
from flask_swagger import swagger
|
||||
from flask_swagger_ui import get_swaggerui_blueprint
|
||||
from translatehtml import translate_html
|
||||
from werkzeug.utils import secure_filename
|
||||
from html import unescape
|
||||
|
||||
from app import flood, remove_translated_files, security
|
||||
from app.language import detect_languages, transliterate
|
||||
|
||||
from .api_keys import Database
|
||||
from .suggestions import Database as SuggestionsDatabase
|
||||
|
||||
|
@ -140,7 +142,6 @@ def create_app(args):
|
|||
else:
|
||||
frontend_argos_language_target = languages[0]
|
||||
|
||||
|
||||
api_keys_db = None
|
||||
|
||||
if args.req_limit > 0 or args.api_keys or args.daily_req_limit > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue