Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 2dd7154036 - Show all commits

View File

@ -126,7 +126,7 @@ class ScolarFormSemestreValidation(db.Model):
def ects(self) -> float: def ects(self) -> float:
"Les ECTS acquis par cette validation. (0 si ce n'est pas une validation d'UE)" "Les ECTS acquis par cette validation. (0 si ce n'est pas une validation d'UE)"
return ( return (
self.ue.ects self.ue.ects or 0.0
if (self.ue is not None) and (self.code in CODES_UE_VALIDES) if (self.ue is not None) and (self.code in CODES_UE_VALIDES)
else 0.0 else 0.0
) )