Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
allow for optional to be null for back compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
runestonetest committed May 14, 2020
1 parent 5d74874 commit f240d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/books.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def dummy():
(db.questions.subchapter == subchapter)
& (db.questions.chapter == chapter)
& (db.questions.from_source == True) # noqa: E712
& (db.questions.optional == False)
& ((db.questions.optional == False) | (db.questions.optional == None))
& (db.questions.base_course == base_course)
).select(db.questions.name)
div_counts = {q.name: 0 for q in page_divids}
Expand All @@ -186,7 +186,7 @@ def dummy():
& (db.questions.chapter == chapter)
& (db.questions.base_course == base_course)
& (db.questions.from_source == True) # noqa: E712
& (db.questions.optional == False)
& ((db.questions.optional == False) | (db.questions.optional == None))
& (db.questions.name == db.useinfo.div_id)
& (db.useinfo.course_id == auth.user.course_name)
& (db.useinfo.sid == auth.user.username)
Expand Down

0 comments on commit f240d7d

Please sign in to comment.