Skip to content

Commit

Permalink
chore: update filter definition
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Dec 9, 2024
1 parent cc358fb commit 1762743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nau_openedx_extensions/filters/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ScheduleQuerySetRequested(OpenEdxPublicFilter):

filter_type = "org.openedx.learning.schedule.queryset.requested.v1"

class PreventScheduleQuerysetRequest(OpenEdxFilterException):
class PreventScheduleQuerySetRequest(OpenEdxFilterException):
"""
Custom class used to stop the schedule queryset request process.
"""
Expand All @@ -35,6 +35,9 @@ def run_filter(cls, schedules: QuerySet) -> QuerySet:
Arguments:
schedules (QuerySet): Queryset of schedules to be sent.
Returns:
QuerySet: Schedules to be sent.
"""
data = super().run_pipeline(schedules=schedules)
return data.get("schedules")

0 comments on commit 1762743

Please sign in to comment.