diff --git a/aincrad/views.py b/aincrad/views.py index fa37c169..7ace8f05 100644 --- a/aincrad/views.py +++ b/aincrad/views.py @@ -95,11 +95,11 @@ class JSONData(TypedDict): ).annotate( num_accepted_all=SubqueryCount( "student__user__student__pset", - filter=Q(status="A"), + filter=Q(status="A") & ~Q(unit__group__name="Dummy Unit"), ), num_accepted_current=SubqueryCount( "student__pset", - filter=Q(status="A"), + filter=Q(status="A") & ~Q(unit__group__name="Dummy Unit"), ), ) PSET_VENUEQ_INIT_KEYS = (