diff --git a/hallgrim/IliasXMLCreator/gap.py b/hallgrim/IliasXMLCreator/gap.py index 71b5923df326595fdf5ba816bb09dcad6e390955..936c66a3dc9af1ca595b4b3e15018195719f2f12 100644 --- a/hallgrim/IliasXMLCreator/gap.py +++ b/hallgrim/IliasXMLCreator/gap.py @@ -75,8 +75,6 @@ class GapQuestion: f = response_num("gap_{}".format(gap_ident), self.gap_length, item[0][1], item[0][2]) gap_ident += 1 flow.append(f) - - return root ############################################################################ diff --git a/hallgrim/IliasXMLCreator/xmlBuildingBlocks.py b/hallgrim/IliasXMLCreator/xmlBuildingBlocks.py index c35ebac5a8f41e04d7cd00d51225816baf99ac5e..238591e5a922720e5197250f9ec50acf8f03a69c 100644 --- a/hallgrim/IliasXMLCreator/xmlBuildingBlocks.py +++ b/hallgrim/IliasXMLCreator/xmlBuildingBlocks.py @@ -14,7 +14,7 @@ def xml_print(element, **kwargs): import xml.dom.minidom xml = xml.dom.minidom.parseString(et.tostring(element, encoding='utf8', method='xml')) # or xml.dom.minidom.parseString(xml_string) - print( xml.toprettyxml(), **kwargs ) + print(xml.toprettyxml(), **kwargs) def simple_element(name, text=None, attrib={}): @@ -147,7 +147,7 @@ def response_choice(ident, answers): def response_num(ident, columns, _min, _max, numtype='Decimal'): response_num = et.Element('response_num', attrib={'ident': ident, 'numtype': numtype, 'rcardinality': 'Single'}) - render_fib = et.Element('render_fib', attrib={'columns': columns, 'fibtype': numtype, 'maxnumber': _min, 'minnumber': _max, 'prompt': "Box"}) + render_fib = et.Element('render_fib', attrib={'columns': str(columns), 'fibtype': numtype, 'maxnumber': _max, 'minnumber': _min, 'prompt': "Box"}) response_num.append(render_fib) return response_num diff --git a/scripts/gap_test.py b/scripts/gap_test.py deleted file mode 100644 index c7ad3827290dde257db8e71b199538b9c0b043a7..0000000000000000000000000000000000000000 --- a/scripts/gap_test.py +++ /dev/null @@ -1,30 +0,0 @@ -meta = { - 'author': 'ILIAS Author', - 'title': 'gap_test', - 'type': 'gap', - 'points': 0.0, -} - -task = """[gap]LALAL2[/gap] KJAakjsfdaskdjfnalksdf - - -```java - -class Auto { - final int tiers = [gap]4[/gap]; -} - -[select] - [3] `int n_ze = m.length;` - [ ] `int n_ze = m[0].length;` - [ ] `int n_ze = m.length();` - [ ] `int n_ze = m[0].length();` -[/select] - -public static void main { - System.out.println("[gap]LALAL2[/gap]"); -} -``` - -END""" -feedback = """ decription """