mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
Lint and format according to new codestyle
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user