Verified Commit 14a8b6a4 authored by Erxleben, Fredo's avatar Erxleben, Fredo
Browse files

Add a way to directly access questions in a collection

Signed-off-by: Erxleben, Fredo's avatarFredo Erxleben <>
parent 495660e9
......@@ -96,6 +96,16 @@ class QuestionCollection(YamlConstructable, Identifiable):
question.short_id: question for question in questions
def questions(self) -> List[Question]:
List all questions in this collection.
A list with all question objects associated with this collection
return list(self._questions.values())
def question_for_id(self, question_short_id: str) -> Question:
Obtain a question from the collection for a given short ID.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment