From 2951951da6dc8d82606b0c31dfc9b5743cafb612 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 21 Sep 2023 08:45:46 +0200 Subject: [PATCH] Fix: assi_get_rounded_time --- app/models/config.py | 4 ++-- sco_version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/config.py b/app/models/config.py index 865fa517d..15da815f0 100644 --- a/app/models/config.py +++ b/app/models/config.py @@ -103,7 +103,7 @@ class ScoDocSiteConfig(db.Model): "cas_logout_route": str, "cas_validate_route": str, "cas_attribute_id": str, - # Assiduités + # Assiduité "morning_time": str, "lunch_time": str, "afternoon_time": str, @@ -398,7 +398,7 @@ class ScoDocSiteConfig(db.Model): @classmethod def assi_get_rounded_time(cls, label: str, default: str) -> float: "Donne l'heure stockée dans la config globale sous label, en float arrondi au quart d'heure" - _round_time_str_to_quarter(cls.get(label, default)) + return _round_time_str_to_quarter(cls.get(label, default)) def _round_time_str_to_quarter(string: str) -> float: diff --git a/sco_version.py b/sco_version.py index e2f9b7bdc..49d42d09a 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.32" +SCOVERSION = "9.6.33" SCONAME = "ScoDoc"