Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Jul 20, 2023
1 parent 763688e commit ae4b0cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion onadata/libs/utils/export_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ def format_field_title(
return title

def get_choice_label_from_dict(self, label):
"""Returns the choice label for the default language."""
"""Returns the choice label for the default language
If a label for the target language is blank then the default
language is used
"""
if isinstance(label, dict):
default_language = self.get_default_language(list(label))
default_label = label.get(default_language)
Expand Down

0 comments on commit ae4b0cb

Please sign in to comment.