improve: introduce isort for linting Python imports (#1983)
This commit is contained in:
parent
cca9edc97a
commit
cc9e74123c
413 changed files with 1635 additions and 1906 deletions
|
|
@ -1,18 +1,14 @@
|
|||
import os
|
||||
from functools import wraps
|
||||
|
||||
from flask import current_app
|
||||
from flask import g
|
||||
from flask import has_request_context
|
||||
from flask import request, session
|
||||
from extensions.ext_database import db
|
||||
from flask import current_app, g, has_request_context, request, session
|
||||
from flask_login import user_logged_in
|
||||
from flask_login.config import EXEMPT_METHODS
|
||||
from models.account import Account, Tenant, TenantAccountJoin
|
||||
from werkzeug.exceptions import Unauthorized
|
||||
from werkzeug.local import LocalProxy
|
||||
|
||||
from extensions.ext_database import db
|
||||
from models.account import Account, Tenant, TenantAccountJoin
|
||||
|
||||
#: A proxy for the current user. If no user is logged in, this will be an
|
||||
#: anonymous user
|
||||
current_user = LocalProxy(lambda: _get_user())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue