def index(self, message='', **params): if 'model' in params: self.export_model(selected_model=params['model']) return { 'message': message, 'tables': sorted(model.__name__ for model in Session.all_models()) }
def index(self, message='', all_instances=None): return { 'message': message, 'tables': sorted(model.__name__ for model in Session.all_models()), 'attendees': all_instances }