changed names of previously protected functions

This commit is contained in:
eclipse 2025-07-19 00:28:21 +02:00
parent 3dd08fb4c4
commit 67e13ffacd
2 changed files with 3 additions and 3 deletions

View File

@ -40,11 +40,11 @@ def search_all():
continue continue
if matchCase: if matchCase:
if s in row[0].__getattribute__(column): if s in row[0].__getattribute__(column):
hits.append(row[0]._asdict()) hits.append(row[0].asdict())
break break
else: else:
if s.lower() in row[0].__getattribute__(column).lower(): if s.lower() in row[0].__getattribute__(column).lower():
hits.append(row[0]._asdict()) hits.append(row[0].asdict())
break break
if hits != []: if hits != []:
result[table.__table__.fullname] = hits result[table.__table__.fullname] = hits

View File

@ -14,7 +14,7 @@ bp = Blueprint("titelbild", __name__)
@bp.route("/titelbild") @bp.route("/titelbild")
@bp.route("/titelbild/all") @bp.route("/titelbild/all")
def all(): def all():
return render_template("views/titelbild.html", titelbilder=map(lambda t: t._asdict_with_urls(), db.session.scalars(select(Titelbild)))) return render_template("views/titelbild.html", titelbilder=map(lambda t: t.asdict_with_urls(), db.session.scalars(select(Titelbild))))
@bp.route("/titelbild/image/<int:id>") @bp.route("/titelbild/image/<int:id>")