def add_columns(self, columns, delete_before = False): if delete_before: for column in self.__columns: db_session.delete(column) for column in columns: db_session.add(column) db_session.commit()
def add_columns(self, columns, delete_before=False): if delete_before: for column in self.__columns: db_session.delete(column) for column in columns: db_session.add(column) db_session.commit()
def add_sorters(self, sorters, delete_before = False): if delete_before: for sorter in self.__sorters: db_session.delete(sorter) for sorter in sorters: if sorter.column: db_session.add(sorter) db_session.commit()
def add_groupers(self, groupers, delete_before = False): if delete_before: for grouper in self.__groupers: db_session.delete(grouper) for grouper in groupers: if grouper.column: db_session.add(grouper) db_session.commit()
def add_sorters(self, sorters, delete_before=False): if delete_before: for sorter in self.__sorters: db_session.delete(sorter) for sorter in sorters: if sorter.column: db_session.add(sorter) db_session.commit()
def add_groupers(self, groupers, delete_before=False): if delete_before: for grouper in self.__groupers: db_session.delete(grouper) for grouper in groupers: if grouper.column: db_session.add(grouper) db_session.commit()