From d455647a187c60bde0045c58d863185dfdef1c9b Mon Sep 17 00:00:00 2001 From: jessikitty Date: Mon, 12 Oct 2026 21:29:57 +1100 Subject: [PATCH] Register catalogue and tape blueprints and models --- app/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index 4c3169c..12206f0 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -54,6 +54,8 @@ def create_app(config_name='default'): from app.routes.instruction_fetch import instruction_fetch_bp from app.routes.logs import logs_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(main_bp) @@ -66,6 +68,8 @@ def create_app(config_name='default'): app.register_blueprint(instruction_fetch_bp) app.register_blueprint(logs_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 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.api_call import BricksetApiCall 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). if app.config.get('AUTO_SCHEMA_UPGRADE', True):