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

Commit e19c339

Browse files
committed
Do not show questions from the source of the book to editors
1 parent 29be121 commit e19c339

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controllers/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,6 +2448,9 @@ def manage_exercises():
24482448
questions = db(
24492449
(db.questions.review_flag == "T")
24502450
& (db.questions.base_course == book.base_course)
2451+
& (
2452+
(db.questions.from_source == "F") | (db.questions.from_source == None)
2453+
) # noqa: E711
24512454
).select(
24522455
db.questions.htmlsrc,
24532456
db.questions.difficulty,

0 commit comments

Comments
 (0)