Skip to content

Commit 4481b93

Browse files
committed
👕 Update imports
1 parent c1ff29c commit 4481b93

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import os
2+
23
from flask import Flask
3-
from flask_mail import Mail
4-
from flask_sqlalchemy import SQLAlchemy
5-
from flask_login import LoginManager
64
from flask_assets import Environment
7-
from flask_wtf import CsrfProtect
85
from flask_compress import Compress
6+
from flask_login import LoginManager
7+
from flask_mail import Mail
98
from flask_rq import RQ
9+
from flask_sqlalchemy import SQLAlchemy
10+
from flask_wtf import CsrfProtect
1011

12+
from app.assets import app_css, app_js, vendor_css, vendor_js
1113
from config import config
12-
from .assets import app_css, app_js, vendor_css, vendor_js
1314

1415
basedir = os.path.abspath(os.path.dirname(__file__))
1516

app/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from flask import abort
44
from flask_login import current_user
55

6-
from .models import Permission
6+
from app.models import Permission
77

88

99
def permission_required(permission):

app/email.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
from flask_mail import Message
55

66
from app import create_app
7-
8-
from . import mail
7+
from app import mail
98

109

1110
def send_email(recipient, subject, template, **kwargs):

0 commit comments

Comments
 (0)