Skip to content

Commit

Permalink
Fix get_labels function for JSON export
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Sep 3, 2024
1 parent ccf183b commit f5791c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rdmo/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def questions(self):
def walk(elements):
questions = []
for element in elements:
if element.get('elements'):
questions += walk(element.get('elements'))
else:
if element.get('elements') is None:
questions.append(element)
else:
questions += walk(element.get('elements'))
return questions

return walk(self.catalog['elements'])
Expand Down

0 comments on commit f5791c1

Please sign in to comment.