forked from ScoDoc/ScoDoc
Fix: assi_get_rounded_time
This commit is contained in:
parent
104b5f2f95
commit
2951951da6
@ -103,7 +103,7 @@ class ScoDocSiteConfig(db.Model):
|
|||||||
"cas_logout_route": str,
|
"cas_logout_route": str,
|
||||||
"cas_validate_route": str,
|
"cas_validate_route": str,
|
||||||
"cas_attribute_id": str,
|
"cas_attribute_id": str,
|
||||||
# Assiduités
|
# Assiduité
|
||||||
"morning_time": str,
|
"morning_time": str,
|
||||||
"lunch_time": str,
|
"lunch_time": str,
|
||||||
"afternoon_time": str,
|
"afternoon_time": str,
|
||||||
@ -398,7 +398,7 @@ class ScoDocSiteConfig(db.Model):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def assi_get_rounded_time(cls, label: str, default: str) -> float:
|
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"
|
"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:
|
def _round_time_str_to_quarter(string: str) -> float:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.6.32"
|
SCOVERSION = "9.6.33"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user