Fix model info
This commit is contained in:
parent
e377c014a7
commit
ff5ce218b5
1 changed files with 1 additions and 2 deletions
|
@ -333,9 +333,8 @@ async def get_model_info(
|
||||||
]
|
]
|
||||||
## Add information about values
|
## Add information about values
|
||||||
values_model = registry.values_for_model.get(model)
|
values_model = registry.values_for_model.get(model)
|
||||||
assert values_model is not None
|
|
||||||
# FIXME: one the first values_model is managed
|
# FIXME: one the first values_model is managed
|
||||||
if len(values_model) > 0 and hasattr(values_model[0], 'values'):
|
if values_model is not None and len(values_model) > 0 and hasattr(values_model[0], 'values'):
|
||||||
model_info['values'] = [ModelValue(**values) for values in values_model[0].values]
|
model_info['values'] = [ModelValue(**values) for values in values_model[0].values]
|
||||||
## Add information about tags
|
## Add information about tags
|
||||||
## TODO: add to plugin_manager a way to retrieve tag_store/tag_actions from a dict?
|
## TODO: add to plugin_manager a way to retrieve tag_store/tag_actions from a dict?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue