Skip to content

Commit

Permalink
Rendering: Use f-strings for record rendering templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscgit committed Jan 9, 2025
1 parent 86a09de commit 0be7d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cernopendata/modules/records/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def record_metadata_view(pid, record, template=None):
response = make_response(
render_template(
[
"cernopendata_records_ui/records/record_detail_{}.html".format(collection),
f"cernopendata_records_ui/records/record_detail_{collection}.html",
"cernopendata_records_ui/records/record_detail.html",
],
pid=pid,
Expand Down

0 comments on commit 0be7d21

Please sign in to comment.