From e425a6cba543723dd45376be5e76c771a9902f6f Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 25 Apr 2025 16:25:09 +0100 Subject: [PATCH] Lint and format according to new codestyle --- invenio_theme_iform/views.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/invenio_theme_iform/views.py b/invenio_theme_iform/views.py index 8baef74..caced98 100644 --- a/invenio_theme_iform/views.py +++ b/invenio_theme_iform/views.py @@ -74,9 +74,9 @@ def require_iform_authenticated(view_func): @login_required def overview(): """Overview.""" - url = current_user_resources.users_service.links_item_tpl.expand( - g.identity, current_user - )["avatar"] + url = current_user_resources.users_service.links_item_tpl.expand(g.identity, current_user)[ + "avatar" + ] is_iform_authenticated = current_identity_is_iform_authenticated() return render_template( "invenio_theme_iform/overview.html", @@ -134,9 +134,7 @@ def index(): """Frontpage.""" records = FrontpageRecordsSearch()[:5].sort("-created").execute() - return render_template( - "invenio_theme_iform/index.html", records=records_serializer(records) - ) + return render_template("invenio_theme_iform/index.html", records=records_serializer(records)) def locked(e):