From 3ca58019a46a4667386dfa0115c063c00ecc27d3 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 21 Aug 2021 16:51:08 +0200 Subject: [PATCH] formsemestre_recapcomplet: returned value --- app/scodoc/sco_recapcomplet.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_recapcomplet.py b/app/scodoc/sco_recapcomplet.py index 459c9ca8c..46399f9df 100644 --- a/app/scodoc/sco_recapcomplet.py +++ b/app/scodoc/sco_recapcomplet.py @@ -187,7 +187,13 @@ def formsemestre_recapcomplet( """ ) H.append(html_sco_header.sco_footer()) - return "".join(H) # HTML or binary data... + # HTML or binary data ? + if len(H) > 1: + return "".join(H) + elif len(H) == 1: + return H[0] + else: + return H def do_formsemestre_recapcomplet(