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:
|
||||
return []
|
||||
|
||||
assiduites_query: Assiduite = Assiduite.query.join(
|
||||
Justificatif, Assiduite.etudid == Justificatif.etudid
|
||||
).filter(
|
||||
Assiduite.date_debut <= justi.date_fin,
|
||||
Assiduite.date_fin >= justi.date_debut,
|
||||
assiduites_query: Assiduite = Assiduite.query.filter_by(etudid=justi.etudid)
|
||||
assiduites_query = assiduites_query.filter(
|
||||
Assiduite.date_debut >= justi.date_debut, Assiduite.date_fin <= justi.date_fin
|
||||
)
|
||||
|
||||
if not obj:
|
||||
|
Loading…
Reference in New Issue
Block a user