tamaki.mes.backup.compare.flattenDashboardWidgets
Description
Lifts each dashboard widget's nested parameters into a new top-level dashboardWidgetParameters
list, adding the owning widget's name (as widgetName) to every parameter. The entityLists
dictionary is mutated in place. Does nothing if there are no dashboard widgets.
Syntax
tamaki.mes.backup.compare.flattenDashboardWidgets(entityLists)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
entityLists | Dict | False | A mapping of entity type to a list of entity dictionaries. |
Returns
This function does not return a value. It mutates entityLists in place, adding a
dashboardWidgetParameters list.
Code Examples
tamaki.mes.backup.compare.flattenDashboardWidgets(data)
print(data["dashboardWidgetParameters"])