Skip to content

Commit

Permalink
fix: teacher publicazions if cessato
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 11, 2024
1 parent 608c758 commit a43ba87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teachers/api/v1/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,9 @@ def getPublicationsList(
if pub_type is not None:
query_type = Q(collection_id__community_id__community_id=pub_type)
if teacherid:
query_teacher = Q(pubblicazioneautori__ab__matricola=teacherid)
cod_fis = Personale.objects.filter(matricola=teacherid).first()
if not cod_fis: raise Http404
query_teacher = Q(pubblicazioneautori__codice_fiscale=cod_fis)
if structure:
query_structure = Q(pubblicazioneautori__ab__cd_uo_aff_org=structure)
query = (
Expand Down

0 comments on commit a43ba87

Please sign in to comment.