Commit 02520bce authored by marcus.hardt's avatar marcus.hardt

Merge branch 'fix-missing-default-param' into 'master'

Fix missing default param (For real this time)

Closes #25

See merge request !28
parents 466fc06d f04aa9fa
......@@ -102,12 +102,11 @@ class Question(Questionnaire):
default -- The default value / the input type
**kwargs -- Any additional keyword arguments are passed to Questionaire.__init__
defaults = {}
if default:
kwargs['defaults'] = {name: default}
kwargs['defaults'] = {name: ''}
defaults[name] = default
super().__init__(questions={name: text}, **kwargs)
super().__init__(questions={name: text}, defaults=defaults, **kwargs)
def raise_question(*args, **kwargs):
"""Convenice function needed in places where an expression is required.
Markdown is supported
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