-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use xpath as key for valueLabels dict #897
Conversation
@royrutto Some forms work, like the one you're testing with, but @faith-mutua and I get different errors |
@@ -737,10 +739,25 @@ def _get_sav_value_labels(self): | |||
name = choice['name'].strip() | |||
label = self.get_choice_label_from_dict(choice['label']) | |||
_value_labels[name] = label.strip() | |||
self._sav_value_labels[q['name']] = _value_labels | |||
self._sav_value_labels[var_name or q['name']] = _value_labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should var_name
be q['name']
when xpath_var_names
in None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
fb82d15
to
10e98e7
Compare
closes https://github.com/onaio/core/issues/1305