Skip to content
Snippets Groups Projects
Commit 9387b7a5 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: saisie assiduité si heure pivot renseignée vide

parent 8bd92fd7
No related branches found
No related tags found
No related merge requests found
......@@ -464,7 +464,7 @@ class ScoDocSiteConfig(models.ScoDocModel):
@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"
return _round_time_str_to_quarter(cls.get(label, default))
return _round_time_str_to_quarter(cls.get(label, default) or default)
def _round_time_str_to_quarter(string: str) -> float:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment