Revised the code order in the init_app function in the "accounting" module.

This commit is contained in:
依瑪貓 2023-03-04 01:25:31 +08:00
parent f41db78831
commit cff3d1b6bd

View File

@ -68,6 +68,9 @@ def init_app(app: Flask, user_utils: AbstractUserUtils,
from .utils import permission from .utils import permission
permission.init_app(bp, can_view_func, can_edit_func) permission.init_app(bp, can_view_func, can_edit_func)
from .utils import next_uri
next_uri.init_app(bp)
from . import base_account from . import base_account
base_account.init_app(app, bp) base_account.init_app(app, bp)
@ -80,7 +83,4 @@ def init_app(app: Flask, user_utils: AbstractUserUtils,
from . import transaction from . import transaction
transaction.init_app(app, bp) transaction.init_app(app, bp)
from .utils import next_uri
next_uri.init_app(bp)
app.register_blueprint(bp) app.register_blueprint(bp)