Skip to content
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

Only parse each nested element name once #118

Closed

Conversation

SuperTux88
Copy link
Member

A child elements should only appear once or it is part of a nested array (photos, poll answers). So each element name only needs to be parsed once, because the way parse_array_from_node works is, that it already parses the full array with one call, so calling it multiple times again parses the full array a second time.

A child elements should only appear once or it is part of a
nested array (photos, poll answers). So each element name only needs to
be parsed once, because the way `parse_array_from_node` works is, that
it already parses the full array with one call, so calling it multiple
times again parses the full array a second time.
Copy link
Member

@denschub denschub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah!

@SuperTux88
Copy link
Member Author

Merged as 85e12ce

Thanks for the review @denschub 🍪

@SuperTux88 SuperTux88 deleted the fix-parsing-nested-arrays branch October 24, 2021 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants