Skip to content

Commit

Permalink
fix: CdSPeriods year
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 13, 2024
1 parent 1a195c1 commit 4ad658b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cds/api/v1/services.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime

from addressbook.utils import append_email_addresses
from django.conf import settings
from django.core.exceptions import BadRequest
from django.db.models import Exists, F, OuterRef, Q
from django.http import Http404
Expand Down Expand Up @@ -350,7 +351,7 @@ def cds(language, cdsid_param, only_active=True):
)

res[0]["CdsPeriods"] = DidatticaCdsPeriodi.objects.filter(
cds_cod=res[0]["cds_cod"], aa_id=res[0]["didatticaregolamento__aa_reg_did"]
cds_cod=res[0]["cds_cod"], settings.CURRENT_YEAR
).values(
"ciclo_des",
"tipo_ciclo_des",
Expand Down

0 comments on commit 4ad658b

Please sign in to comment.