Lint and format according to new codestyle

This commit is contained in:
2025-04-25 16:25:09 +01:00
parent 07f8c8c8b6
commit e425a6cba5

View File

@@ -74,9 +74,9 @@ def require_iform_authenticated(view_func):
@login_required @login_required
def overview(): def overview():
"""Overview.""" """Overview."""
url = current_user_resources.users_service.links_item_tpl.expand( url = current_user_resources.users_service.links_item_tpl.expand(g.identity, current_user)[
g.identity, current_user "avatar"
)["avatar"] ]
is_iform_authenticated = current_identity_is_iform_authenticated() is_iform_authenticated = current_identity_is_iform_authenticated()
return render_template( return render_template(
"invenio_theme_iform/overview.html", "invenio_theme_iform/overview.html",
@@ -134,9 +134,7 @@ def index():
"""Frontpage.""" """Frontpage."""
records = FrontpageRecordsSearch()[:5].sort("-created").execute() records = FrontpageRecordsSearch()[:5].sort("-created").execute()
return render_template( return render_template("invenio_theme_iform/index.html", records=records_serializer(records))
"invenio_theme_iform/index.html", records=records_serializer(records)
)
def locked(e): def locked(e):