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

Нет описания правки
Нет описания правки
Метка: ручная отмена
Строка 596: Строка 596:
             end
             end
             out = out .. ")"
             out = out .. ")"
        end
    end
    return out
end
function p.test3(frame, tabl, str) -- should not be inviked
    local out = {}
    for microwaveRecipes, recipes in pairs(tabl) do
        out[microwaveRecipes] = {}
        for recipeId, recipe in pairs(recipes) do
            if string.match(recipeId, str) then
                table.insert(out[microwaveRecipes], recipe)
            end
         end
         end
     end
     end