Register catalogue and tape blueprints and models

This commit is contained in:
jessikitty committed 2026-10-12 21:29:57 +11:00
1 parent f8c53e91ad
commit d455647a18
1 file changed
+7
+7
View File
@@ -54,6 +54,8 @@ def create_app(config_name='default'):
from app.routes.instruction_fetch import instruction_fetch_bp from app.routes.instruction_fetch import instruction_fetch_bp
from app.routes.logs import logs_bp from app.routes.logs import logs_bp
from app.routes.labels import labels_bp from app.routes.labels import labels_bp
from app.routes.labels_catalog import catalog_bp
from app.routes.labels_tape import tape_bp
app.register_blueprint(auth_bp) app.register_blueprint(auth_bp)
app.register_blueprint(main_bp) app.register_blueprint(main_bp)
@@ -66,6 +68,8 @@ def create_app(config_name='default'):
app.register_blueprint(instruction_fetch_bp) app.register_blueprint(instruction_fetch_bp)
app.register_blueprint(logs_bp) app.register_blueprint(logs_bp)
app.register_blueprint(labels_bp) app.register_blueprint(labels_bp)
app.register_blueprint(catalog_bp)
app.register_blueprint(tape_bp)
# Import models to ensure they're registered with SQLAlchemy # Import models to ensure they're registered with SQLAlchemy
from app.models.user import User from app.models.user import User
@@ -77,6 +81,9 @@ def create_app(config_name='default'):
from app.models.instruction_fetch import InstructionFetchJob from app.models.instruction_fetch import InstructionFetchJob
from app.models.api_call import BricksetApiCall from app.models.api_call import BricksetApiCall
from app.models.part_label import PartCategory, PartLabel from app.models.part_label import PartCategory, PartLabel
from app.models.part_catalog_item import (CatalogSync,
PartCatalogCategory,
PartCatalogItem)
# Add any columns missing from an older database (additive only). # Add any columns missing from an older database (additive only).
if app.config.get('AUTO_SCHEMA_UPGRADE', True): if app.config.get('AUTO_SCHEMA_UPGRADE', True):