mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Another attempt to fix plugin
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
from flask import Blueprint
|
||||
|
||||
blueprint = Blueprint(
|
||||
"custom_menu",
|
||||
__name__,
|
||||
)
|
||||
|
||||
|
||||
def init_app(app):
|
||||
"""Initialize application."""
|
||||
app.register_blueprint(blueprint)
|
||||
|
||||
from . import views
|
||||
|
||||
app.register_blueprint(views.blueprint)
|
||||
|
||||
@app.before_first_request
|
||||
def init_menus():
|
||||
views.init_menu()
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user