Example #1
0
 def get_details(self, api_client: GrocyApiClient):
     if self.recipe_id:
         recipe = api_client.get_recipe(self.recipe_id)
         if recipe:
             self._recipe = RecipeItem(recipe)
     if self.section_id:
         section = api_client.get_meal_plan_section(self.section_id)
         if section:
             self._section = MealPlanSection(section)
Example #2
0
 def get_details(self, api_client: GrocyApiClient):
     recipe = api_client.get_recipe(self.recipe_id)
     if recipe:
         self._recipe = RecipeItem(recipe)