Skip to content
Snippets Groups Projects
Commit 64f4eecd authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

fixed minor error in main script

parent 56a4c9b9
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ implemented.
* Add a good description / documentation.
* Add more functionality (finalize gap, alignment)
* Make parsers more robust.
* reverse ILIAS authentication mechanism for automated upload.
* setup test system in virtual box
* Create whole test object with questions for direct import. Create two
versions (one for internal use and one for the test.)
* add zip support
......@@ -77,3 +77,5 @@ class Car {
```
````
It is possible to include gaps withing code blocks.
......@@ -47,7 +47,7 @@ def file_to_module(name):
def type_selector(type):
if 'multiple' in type:
if 'multi' in type:
return 'MULTIPLE CHOICE QUESTION'
if 'single' in type:
return 'SINGLE CHOICE QUESTION'
......@@ -141,7 +141,9 @@ def delegator(output, script_list, instances):
script = importlib.import_module(file_to_module(script_name))
handler = {
'gap': handle_gap_questions,
'single': handle_choice_questions,
'single choice': handle_choice_questions,
'multi': handle_choice_questions,
'multiple choice': handle_choice_questions
}[script.meta['type']]
......@@ -164,8 +166,8 @@ def handle_gap_questions(output, script, instances):
output = os.path.join(
'output', script.meta['title']) + '.xml' if not output else output
packer.convert_and_print(data, output, instances)
info('Processed "{}" and wrote xml to "{}".'.format(
script.__name__, output))
info('Processed "{}" and'.format(script.__name__))
info('wrote xml "{}"'.format(output), notag=True)
def handle_choice_questions(output, script, instances):
......@@ -202,3 +204,4 @@ def handle_new_script(name, qtype, author, points):
if __name__ == '__main__':
markdown = get_markdown()
parseme()
exit("All done. Goodbye.")
......@@ -2,7 +2,7 @@ meta = {
'author': 'ILIAS Author',
'title': 'Eine Methode (I1-ID: 75li4j91gdg0)',
'type': 'multi',
'points': 0.0,
'points': 5.0,
}
task = """ decription """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment