forked from ScoDoc/ScoDoc
Merge branch 'dev96' of https://scodoc.org/git/iziram/ScoDoc into sco96
This commit is contained in:
commit
bdfa603539
@ -326,11 +326,9 @@ def justifies(justi: Justificatif, obj: bool = False) -> list[int]:
|
|||||||
if justi.etat != scu.EtatJustificatif.VALIDE:
|
if justi.etat != scu.EtatJustificatif.VALIDE:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
assiduites_query: Assiduite = Assiduite.query.join(
|
assiduites_query: Assiduite = Assiduite.query.filter_by(etudid=justi.etudid)
|
||||||
Justificatif, Assiduite.etudid == Justificatif.etudid
|
assiduites_query = assiduites_query.filter(
|
||||||
).filter(
|
Assiduite.date_debut >= justi.date_debut, Assiduite.date_fin <= justi.date_fin
|
||||||
Assiduite.date_debut <= justi.date_fin,
|
|
||||||
Assiduite.date_fin >= justi.date_debut,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not obj:
|
if not obj:
|
||||||
|
Loading…
Reference in New Issue
Block a user