Skip to content

Commit

Permalink
Merge pull request #21 from bdjilka/add_formatting_to_callable_select…
Browse files Browse the repository at this point in the history
…many

Add formated value for callable selectmany handler
  • Loading branch information
ffaraone authored Sep 9, 2022
2 parents 4a62f6b + f1d6158 commit 078e340
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interrogatio/handlers/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ def get_formatted_value(self):
values = self.get_value()
if not values:
return ''
options = {t[0]: t[1] for t in self._question['values']}

if callable(self._question['values']):
options = {t[0]: t[1] for t in self.get_widget().values}
else:
options = {t[0]: t[1] for t in self._question['values']}

formatted_values = []

Expand Down

0 comments on commit 078e340

Please sign in to comment.