Adding ntce export

This commit is contained in:
Vitaliy Skrypnyk
2021-09-01 14:48:30 +03:00
parent a70258471c
commit 56f8f65d83
2 changed files with 21 additions and 12 deletions

View File

@@ -55,6 +55,9 @@ class KeeneticCollector(object):
for tagName, tagPath in self._tags.items():
if tagPath == '~':
tags[tagName] = root.path.fields[0]
elif str(tagPath).startswith('`parent`'):
full_path = root.full_path.child(tagPath)
tags[tagName] = self.get_first_value(full_path.find(response))
else:
tags[tagName] = self.get_first_value(tagPath.find(root.value))