cleanup: Whitespaces and imports

- Remove unnecessary import
- Reorder imports
- Fix whitespace issues
This commit is contained in:
Mufeed Ali 2022-02-20 13:39:02 +05:30
parent 933c96914b
commit 2ddb415bba
No known key found for this signature in database
GPG key ID: 5B93F7B4CC99C769
6 changed files with 15 additions and 7 deletions

View file

@ -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: