From 0ab9a281a96c1abc1f19816dc7a08041435b613f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 4 Oct 2021 15:09:19 +0200 Subject: [PATCH] Fix regression: API billetin par code_nip --- app/scodoc/sco_pdf.py | 1 - app/views/notes.py | 5 +++-- sco_version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_pdf.py b/app/scodoc/sco_pdf.py index 40546e75..c504ae17 100755 --- a/app/scodoc/sco_pdf.py +++ b/app/scodoc/sco_pdf.py @@ -149,7 +149,6 @@ def makeParas(txt, style, suppress_empty=False): else: raise e except Exception as e: - detail = " " + str(e) log(traceback.format_exc()) log("Invalid pdf para format: %s" % txt) result = [ diff --git a/app/views/notes.py b/app/views/notes.py index a2f00a45..f29144fb 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -274,9 +274,10 @@ def formsemestre_bulletinetud( xml_with_decisions=False, force_publishing=False, prefer_mail_perso=False, + code_nip=None, ): - if not etudid: - raise ScoValueError("Paramètre manquant: etudid est requis") + if not (etudid or code_nip): + raise ScoValueError("Paramètre manquant: spécifier code_nip ou etudid") if not formsemestre_id: raise ScoValueError("Paramètre manquant: formsemestre_id est requis") return sco_bulletins.formsemestre_bulletinetud( diff --git a/sco_version.py b/sco_version.py index fbdccd0a..59e8b68b 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.0.46" +SCOVERSION = "9.0.47" SCONAME = "ScoDoc"