예제 #1
0
 def insertNewFilter(cls, data: DataModel, filter: FilterModel):
     id = DataController.getMaxIdInList(data.filters)
     filter.id = id + 1
     data.filters.append(filter)
 def insertNewDashboard(cls, data: DataModel, dashboard: DashboardModel):
     id = DataController.getMaxIdInList(data.dashboards)
     dashboard.id = id + 1
     data.dashboards.append(dashboard)
예제 #3
0
 def insertNewTable(cls, data: DataModel, table: TableModel):
     id = DataController.getMaxIdInList(data.dataSources)
     table.id = id + 1
     data.dataSources.append(table)