sp_fr: add alias with _1 suffix to cater for nodes with maxOccurs > 1 (#33256)
Text nodes which can be multiple must always have a counter suffix.
This commit is contained in:
parent
f58880854c
commit
20c614261c
|
@ -490,6 +490,9 @@ class Resource(BaseResource):
|
|||
yield p, value
|
||||
else:
|
||||
yield path, text_content(node)
|
||||
# case of multiple nodes
|
||||
new_path = path[:-1] + [path[-1] + '_1']
|
||||
yield new_path, text_content(node)
|
||||
return {'_'.join(path): value for path, value in helper([tag_name(root)], root)}
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in New Issue