Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/src/commit/f50bcf34ac3c246d21a69dc3cc2f2eba63314c21/libs/flask_sqlalchemy/cli.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/flask_sqlalchemy/cli.py

17 lines
484 B

from __future__ import annotations
import typing as t
from flask import current_app
def add_models_to_shell() -> dict[str, t.Any]:
"""Registered with :meth:`~flask.Flask.shell_context_processor` if
``add_models_to_shell`` is enabled. Adds the ``db`` instance and all model classes
to ``flask shell``.
"""
db = current_app.extensions["sqlalchemy"]
out = {m.class_.__name__: m.class_ for m in db.Model._sa_registry.mappers}
out["db"] = db
return out