From d750d3a2c0beb562ba5bdea9b6b719d20524bc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Horv=C3=A1t?= Date: Fri, 10 Jan 2025 14:09:36 +0100 Subject: [PATCH] Formatting: Formatted utils.py file --- cernopendata/modules/records/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cernopendata/modules/records/utils.py b/cernopendata/modules/records/utils.py index cf56569..f2708ad 100644 --- a/cernopendata/modules/records/utils.py +++ b/cernopendata/modules/records/utils.py @@ -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)) @@ -207,6 +208,7 @@ def __wrapper(*args, **kwargs): break return response + return __wrapper