diff --git a/users/views.py b/users/views.py index 39cd45f..72d74f3 100644 --- a/users/views.py +++ b/users/views.py @@ -188,7 +188,7 @@ def getICSFileExAll(request, code, ag): #try: agency = Agency.objects.get(pk=ag) - if agency != None and agency.agencycal_publicstatus == 1 and str(code) == str(agency.agencycalurl): + if agency != None and agency.agencycal_publicstatus == 1 and str(code) == str(agency.agencycalurl_all): c = Calendar() absencedays = Absence.objects.filter(agency=ag).exclude(confirm_status=2) for ab in absencedays: