diff --git a/__pycache__/config.cpython-313.pyc b/__pycache__/config.cpython-313.pyc new file mode 100644 index 0000000..ad7ce61 Binary files /dev/null and b/__pycache__/config.cpython-313.pyc differ diff --git a/app/__init__.py b/app/__init__.py index 9c3210c..4ce705f 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -108,6 +108,17 @@ def create_app(config_name='development'): except ImportError as e: print(f"Could not import API blueprint: {e}") + # Register template filters - IMPORTANT FOR MARKDOWN FILTER + from app.core.template_filters import bp as filters_bp + app.register_blueprint(filters_bp) + + # Register template filters directly if the blueprint method doesn't work + from app.core.template_filters import markdown_filter, ip_network_filter, ip_address_filter, get_ip_network + app.jinja_env.filters['markdown'] = markdown_filter + app.jinja_env.filters['ip_network'] = ip_network_filter + app.jinja_env.filters['ip_address'] = ip_address_filter + app.jinja_env.globals['get_ip_network'] = get_ip_network + # Create database tables with app.app_context(): try: diff --git a/app/__pycache__/__init__.cpython-313.pyc b/app/__pycache__/__init__.cpython-313.pyc index 0ea6980..25aafc2 100644 Binary files a/app/__pycache__/__init__.cpython-313.pyc and b/app/__pycache__/__init__.cpython-313.pyc differ diff --git a/app/core/__pycache__/template_filters.cpython-313.pyc b/app/core/__pycache__/template_filters.cpython-313.pyc new file mode 100644 index 0000000..f27479d Binary files /dev/null and b/app/core/__pycache__/template_filters.cpython-313.pyc differ diff --git a/app/scripts/__pycache__/db_seed.cpython-313.pyc b/app/scripts/__pycache__/db_seed.cpython-313.pyc index 9f31c6d..02a29fe 100644 Binary files a/app/scripts/__pycache__/db_seed.cpython-313.pyc and b/app/scripts/__pycache__/db_seed.cpython-313.pyc differ diff --git a/app/templates/dashboard/server_view.html b/app/templates/dashboard/server_view.html index b6a8ae4..5629817 100644 --- a/app/templates/dashboard/server_view.html +++ b/app/templates/dashboard/server_view.html @@ -103,79 +103,37 @@