QuizGenerator 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- QuizGenerator/question.py +9 -4
- {quizgenerator-0.1.2.dist-info → quizgenerator-0.1.3.dist-info}/METADATA +1 -1
- {quizgenerator-0.1.2.dist-info → quizgenerator-0.1.3.dist-info}/RECORD +6 -6
- {quizgenerator-0.1.2.dist-info → quizgenerator-0.1.3.dist-info}/WHEEL +0 -0
- {quizgenerator-0.1.2.dist-info → quizgenerator-0.1.3.dist-info}/entry_points.txt +0 -0
- {quizgenerator-0.1.2.dist-info → quizgenerator-0.1.3.dist-info}/licenses/LICENSE +0 -0
QuizGenerator/question.py
CHANGED
|
@@ -555,10 +555,15 @@ class Question(abc.ABC):
|
|
|
555
555
|
)
|
|
556
556
|
|
|
557
557
|
def get_answers(self, *args, **kwargs) -> Tuple[Answer.AnswerKind, List[Dict[str,Any]]]:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
if len(self.answers.values()) > 0:
|
|
559
|
+
return (
|
|
560
|
+
self.answer_kind,
|
|
561
|
+
list(itertools.chain(*[a.get_for_canvas() for a in self.answers.values()]))
|
|
562
|
+
)
|
|
563
|
+
else:
|
|
564
|
+
return (
|
|
565
|
+
Answer.AnswerKind.ESSAY, []
|
|
566
|
+
)
|
|
562
567
|
|
|
563
568
|
def refresh(self, rng_seed=None, *args, **kwargs):
|
|
564
569
|
"""If it is necessary to regenerate aspects between usages, this is the time to do it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: QuizGenerator
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Generate randomized quiz questions for Canvas LMS and PDF exams
|
|
5
5
|
Project-URL: Homepage, https://github.com/OtterDen-Lab/QuizGenerator
|
|
6
6
|
Project-URL: Documentation, https://github.com/OtterDen-Lab/QuizGenerator/tree/main/documentation
|
|
@@ -9,7 +9,7 @@ QuizGenerator/misc.py,sha256=uIc1revyGZK8LL-1sJfhsoJ_MlYn75LPap6FRAiJWRQ,15635
|
|
|
9
9
|
QuizGenerator/mixins.py,sha256=RjV76C1tkTLSvhSoMys67W7UmR6y6wAAcBM2Msxdpd0,18186
|
|
10
10
|
QuizGenerator/performance.py,sha256=CM3zLarJXN5Hfrl4-6JRBqD03j4BU1B2QW699HAr1Ds,7002
|
|
11
11
|
QuizGenerator/qrcode_generator.py,sha256=S3mzZDk2UiHiw6ipSCpWPMhbKvSRR1P5ordZJUTo6ug,10776
|
|
12
|
-
QuizGenerator/question.py,sha256=
|
|
12
|
+
QuizGenerator/question.py,sha256=ddgbaHaqJCBfgdflMIRVGJNfZ5EKghsOXBzFsrIM3WY,25506
|
|
13
13
|
QuizGenerator/quiz.py,sha256=wOuj_mDfdnUNHlAEAcLUZoH-JX57RovLoYW4mA0GgPc,18762
|
|
14
14
|
QuizGenerator/typst_utils.py,sha256=XtMEO1e4_Tg0G1zR9D1fmrYKlUfHenBPdGoCKR0DhZg,3154
|
|
15
15
|
QuizGenerator/canvas/__init__.py,sha256=qsgHE4cz_WBXYZ3DZ_fEqLXUKbm-fH6oLkNUAnX96HY,286
|
|
@@ -37,8 +37,8 @@ QuizGenerator/premade_questions/cst463/neural-network-basics/__init__.py,sha256=
|
|
|
37
37
|
QuizGenerator/premade_questions/cst463/neural-network-basics/neural_network_questions.py,sha256=7ZtCQ2fXhIPSd99TstQfOKCN13GJE_56UfBQKdmzmMI,42398
|
|
38
38
|
QuizGenerator/premade_questions/cst463/tensorflow-intro/__init__.py,sha256=G1gEHtG4KakYgi8ZXSYYhX6bQRtnm2tZVGx36d63Nmo,173
|
|
39
39
|
QuizGenerator/premade_questions/cst463/tensorflow-intro/tensorflow_questions.py,sha256=dPn8Sj0yk4m02np62esMKZ7CvcljhYq3Tq51nY9aJnA,29781
|
|
40
|
-
quizgenerator-0.1.
|
|
41
|
-
quizgenerator-0.1.
|
|
42
|
-
quizgenerator-0.1.
|
|
43
|
-
quizgenerator-0.1.
|
|
44
|
-
quizgenerator-0.1.
|
|
40
|
+
quizgenerator-0.1.3.dist-info/METADATA,sha256=RhUELVy3CgBnq-XA15W1Dr7sp2yp9DiuwfCK9TqxHj0,7149
|
|
41
|
+
quizgenerator-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
42
|
+
quizgenerator-0.1.3.dist-info/entry_points.txt,sha256=iViWMzswXGe88WKoue_Ib-ODUSiT_j_6f1us28w9pkc,56
|
|
43
|
+
quizgenerator-0.1.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
44
|
+
quizgenerator-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|