fix 'ts' value

This commit is contained in:
zolliker 2021-04-26 16:04:33 +02:00 committed by Markus Zolliker
parent 3e7b008a59
commit 5e77a43f6c

View File

@ -401,9 +401,8 @@ class SeaModule(Module):
include = True
for paramdesc in descr['params']:
path = paramdesc['path']
if paramdesc.get('visibility', 1) > visibility_level:
if not path.endswith('is_running'):
continue
if paramdesc.get('visibility', 1) > visibility_level and not path.endswith('is_running'):
continue
sub = path.split('/', 1)
if rpath == '.': # take all except subpaths with readonly node at top
if len(sub) == 1:
@ -413,9 +412,11 @@ class SeaModule(Module):
elif sub[0] == rpath:
result.append(paramdesc)
descr['params'] = result
if result[0]['path'] != '':
pass # TODO: check these cases
result[0]['key'] = 'value'
rel0 = '' if rel_paths[0] == '.' else rel_paths[0]
if result[0]['path'] == rel0:
result[0]['key'] = 'value'
else:
logger.error('%s: no value found', name)
# logger.info('PARAMS %s %r', name, result)
base = descr['base']
params = descr['params']