excel2moodle 0.4.3__py3-none-any.whl → 0.4.4__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.
- excel2moodle/core/dataStructure.py +3 -2
- excel2moodle/core/validator.py +3 -3
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/METADATA +1 -1
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/RECORD +8 -8
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/WHEEL +0 -0
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/entry_points.txt +0 -0
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/licenses/LICENSE +0 -0
- {excel2moodle-0.4.3.dist-info → excel2moodle-0.4.4.dist-info}/top_level.txt +0 -0
@@ -125,8 +125,9 @@ class QuestionDB:
|
|
125
125
|
for tag, value in settings.iterrows():
|
126
126
|
value = value.iloc[0]
|
127
127
|
if tag == Tags.TOLERANCE:
|
128
|
-
tol = value if value
|
129
|
-
|
128
|
+
tol = value if value < 1 else value / 100
|
129
|
+
if tol > 0 and tol < 1:
|
130
|
+
self.settings.set(Tags.TOLERANCE, tol)
|
130
131
|
else:
|
131
132
|
self.settings.set(tag, value)
|
132
133
|
if Tags.IMPORTMODULE in settings.index:
|
excel2moodle/core/validator.py
CHANGED
@@ -80,9 +80,9 @@ class Validator:
|
|
80
80
|
if key.startswith(tag) and not isinstance(self.qdata[key], list):
|
81
81
|
self.qdata[key] = stringHelpers.getListFromStr(self.qdata[key])
|
82
82
|
tol = float(self.qdata.get(Tags.TOLERANCE, 0))
|
83
|
-
if tol
|
84
|
-
|
85
|
-
|
83
|
+
if tol < 0 or tol > 99:
|
84
|
+
tol = settings.get(Tags.TOLERANCE)
|
85
|
+
elif tol != 0:
|
86
86
|
self.qdata[Tags.TOLERANCE] = tol if tol < 1 else tol / 100
|
87
87
|
|
88
88
|
if self.qdata[Tags.TYPE] == "NFM":
|
@@ -3,7 +3,7 @@ excel2moodle/__main__.py,sha256=sG4ygwfVFskLQorBn-v98SvasNcPmwl_vLYpruT5Hk8,1175
|
|
3
3
|
excel2moodle/logger.py,sha256=S9tvSwsOx2xta_AhGKHPNgi5FaiycyUDtkzHlIlNAX8,3193
|
4
4
|
excel2moodle/core/__init__.py,sha256=87BwhtZse72Tk17Ib-V9X2k9wkhmtVnEj2ZmJ9JBAnI,63
|
5
5
|
excel2moodle/core/category.py,sha256=TzntDhEURshxWuI6qc_K_t5bSTLXn6s0n_RA56Basg8,1885
|
6
|
-
excel2moodle/core/dataStructure.py,sha256=
|
6
|
+
excel2moodle/core/dataStructure.py,sha256=lmquDdRyMqKxHjbcMOJ83BRs1otXqG9vhNFVfQsljwE,15578
|
7
7
|
excel2moodle/core/etHelpers.py,sha256=G37qplp8tPJxqHNCBrf2Wo0jJZ0aDbxE9slQavqYqd8,2293
|
8
8
|
excel2moodle/core/exceptions.py,sha256=9xfsaIcm6Yej6QAZga0d3DK3jLQejdfgJARuAaG-uZY,739
|
9
9
|
excel2moodle/core/globals.py,sha256=Zm1wcrzQTRnhjrkwgBvo7VjKCFdPMjh-VLSSI5_QCO8,2837
|
@@ -12,7 +12,7 @@ excel2moodle/core/parser.py,sha256=Ec8bQ0CiiZCIdzQovfH2rce406wmyRmvhpDrCPeQfGU,8
|
|
12
12
|
excel2moodle/core/question.py,sha256=nJDs8SPDRYP6xG4rvo8Bbh1734eQ96DZxVXb7yrT8LM,10802
|
13
13
|
excel2moodle/core/settings.py,sha256=JhcgZcOrgFC7P4h9fSXZAApEl_9dE643r5arFpU1HXQ,5808
|
14
14
|
excel2moodle/core/stringHelpers.py,sha256=OzFZ6Eu3PeBLKb61K-aeVfUZmVuBerr9KfyOsuNRd7Y,2403
|
15
|
-
excel2moodle/core/validator.py,sha256=
|
15
|
+
excel2moodle/core/validator.py,sha256=ssgkyUwrR-0AGPX1cUqvRwZsGja13J7HQ2W72ltqN-Y,4683
|
16
16
|
excel2moodle/extra/__init__.py,sha256=PM-id60HD21A3IcGC_fCYFihS8osBGZMIJCcN-ZRsIM,293
|
17
17
|
excel2moodle/extra/equationVerification.py,sha256=GLJl1r90d8AAiNy0H2hooZrg3D6aEwNfifYKAe3aGxM,3921
|
18
18
|
excel2moodle/question_types/__init__.py,sha256=81mss0g7SVtnlb-WkydE28G_dEAAf6oT1uB8lpK2-II,1041
|
@@ -30,9 +30,9 @@ excel2moodle/ui/dialogs.py,sha256=JbQ1y55wbzWVTY0nxdGrUm81AdOIY3PXKgET03Hc6Ys,67
|
|
30
30
|
excel2moodle/ui/equationChecker.py,sha256=ANpN7S0llkp6pGL1sKHII1Jc8YUvgDR458UnGVnZZOo,2702
|
31
31
|
excel2moodle/ui/treewidget.py,sha256=az64swVj1yQUsioeaZys32AauvQDdC4EKcqdbbWgL6s,2489
|
32
32
|
excel2moodle/ui/windowDoc.py,sha256=WvzHj6F4JvHP82WlTsyFeOXW024Xq3BUqtp--T4twuI,661
|
33
|
-
excel2moodle-0.4.
|
34
|
-
excel2moodle-0.4.
|
35
|
-
excel2moodle-0.4.
|
36
|
-
excel2moodle-0.4.
|
37
|
-
excel2moodle-0.4.
|
38
|
-
excel2moodle-0.4.
|
33
|
+
excel2moodle-0.4.4.dist-info/licenses/LICENSE,sha256=ywQqe6Sitymkf2lV2NRcx_aGsaC-KbSl_EfEsRXmNRw,35135
|
34
|
+
excel2moodle-0.4.4.dist-info/METADATA,sha256=NnGjQn0V6gBHcWuIjnleEqTeeFK5zVS0bDpwB6240SE,2951
|
35
|
+
excel2moodle-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
36
|
+
excel2moodle-0.4.4.dist-info/entry_points.txt,sha256=myfMLDThuGgWHMJDPPfILiZqo_7D3fhmDdJGqWOAjPw,60
|
37
|
+
excel2moodle-0.4.4.dist-info/top_level.txt,sha256=5V1xRUQ9o7UmOCmNoWCZPAuy5nXp3Qbzyqch8fUGT_c,13
|
38
|
+
excel2moodle-0.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|