From 865192bc0d971d0c40712a7d67fa3dfc6cc879ac Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 23 Sep 2021 08:15:54 +0200 Subject: [PATCH] type hint --- app/scodoc/sco_formsemestre_status.py | 4 ++-- sco_version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index b689dbf84..16635a664 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -436,7 +436,7 @@ def formsemestre_status_menubar(sem): return "\n".join(H) -def retreive_formsemestre_from_request(): +def retreive_formsemestre_from_request() -> int: """Cherche si on a de quoi déduire le semestre affiché à partir des arguments de la requête: formsemestre_id ou moduleimpl ou evaluation ou group_id ou partition_id @@ -482,7 +482,7 @@ def retreive_formsemestre_from_request(): else: return None # no current formsemestre - return formsemestre_id + return int(formsemestre_id) # Element HTML decrivant un semestre (barre de menu et infos) diff --git a/sco_version.py b/sco_version.py index e1ab1c57d..97ef6ed8b 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.0.34" +SCOVERSION = "9.0.35" SCONAME = "ScoDoc"