Module:JI ratios: Difference between revisions
m bugfix |
Bugfix converting subgroup to text |
||
| Line 462: | Line 462: | ||
.. " " .. autosearch_text | .. " " .. autosearch_text | ||
elseif search_args["Subgroup"] ~= nil then | elseif search_args["Subgroup"] ~= nil then | ||
local | local subgroup_members = {} | ||
for i = 1, #search_args["Subgroup"] do | for i = 1, #search_args["Subgroup"] do | ||
local a, b = rat.as_pair(search_args["Subgroup"][i]) | |||
table.insert(subgroup_members, (b == 1 and string.format("%s", a) or string.format("%s/%s", a, b))) | |||
end | end | ||
search_text = string.format("Ratios shown are within the %s subgroup.", | search_text = string.format("Ratios shown are within the %s subgroup.", table.concat(subgroup_members, ".")) | ||
.. " " .. autosearch_text | .. " " .. autosearch_text | ||
elseif search_args["Int Limit"] ~= nil then | elseif search_args["Int Limit"] ~= nil then | ||