def initialize(self): meals_db = MealsService.get_raw_meals() self._root_category = MealsService.split_meals_by_categories( meals_db, MealsService.NO_SPLIT) # Update the tiles on the view to match the category self._update_tiles(self._root_category)
def initialize(self): meals_db = MealsService.get_raw_meals() self._root_category = MealsService.split_meals_by_categories( meals_db, MealsService.SPLIT_ALL) # Print a tree of all categories self._root_category.printc() # Update the tiles on the view to match the category self._update_tiles(self._root_category)