Skip to content

Commit

Permalink
feat(aincrad): exclude Dummy from complete count
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Dec 13, 2024
1 parent a572385 commit 0e5cccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aincrad/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 0e5cccb

Please sign in to comment.