Модуль:Meals Lookup: различия между версиями

Нет описания правки
Нет описания правки
Строка 20: Строка 20:
     for type, recipes in pairs(p.meals) do
     for type, recipes in pairs(p.meals) do
         for recipeId, recipe in pairs(recipes) do
         for recipeId, recipe in pairs(recipes) do
             if (recipeId == id) or (recipe["id"] == id) then
             if (recipeId:gsub(' ', '') == id:gsub(' ', '')) or (recipe["id"]:gsub(' ', '') == id:gsub(' ', '')) then
                 out = type
                 out = type
                 break
                 break