From cff3d1b6bd9064e0c3a8fd5aff06846a9c7a2c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 4 Mar 2023 01:25:31 +0800 Subject: [PATCH] Revised the code order in the init_app function in the "accounting" module. --- src/accounting/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/__init__.py b/src/accounting/__init__.py index bbb7842..c03771f 100644 --- a/src/accounting/__init__.py +++ b/src/accounting/__init__.py @@ -68,6 +68,9 @@ def init_app(app: Flask, user_utils: AbstractUserUtils, from .utils import permission permission.init_app(bp, can_view_func, can_edit_func) + from .utils import next_uri + next_uri.init_app(bp) + from . import base_account base_account.init_app(app, bp) @@ -80,7 +83,4 @@ def init_app(app: Flask, user_utils: AbstractUserUtils, from . import transaction transaction.init_app(app, bp) - from .utils import next_uri - next_uri.init_app(bp) - app.register_blueprint(bp)