Skip to content

Commit 3077344

Browse files
committed
Fix: get number of questions correct
1 parent 20a1b66 commit 3077344

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

components/rsptx/db/crud/question.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ async def fetch_question_count_per_subchapter(
365365
and_(
366366
Question.base_course == course_name,
367367
Question.from_source == True, # noqa 711
368-
Question.optional != True, # noqa 711
368+
or_(
369+
Question.optional == False, # noqa 711
370+
Question.optional == None, # noqa 711
371+
)
369372
)
370373
)
371374
.group_by(Question.chapter, Question.subchapter)

0 commit comments

Comments
 (0)