Skip to content

Commit

Permalink
Formatting: Formatted utils.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscgit committed Jan 10, 2025
1 parent 024b463 commit d750d3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cernopendata/modules/records/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def record_file_page(pid, record, page=1, **kwargs):


def _add_experiment_header(render):
"""Decorator for rendering a page and extracting the experiment"""
"""Decorator for rendering a page and adding the experiment as a header to the response."""

def __wrapper(*args, **kwargs):
response = make_response(render(*args, **kwargs))

Expand All @@ -207,6 +208,7 @@ def __wrapper(*args, **kwargs):
break

return response

return __wrapper


Expand Down

0 comments on commit d750d3a

Please sign in to comment.