Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:View/Quest
(view source)
Revision as of 00:48, 15 January 2020
1 byte added
,
4 years ago
no edit summary
Line 50:
Line 50:
for i, q in ipairs(data) do
for i, q in ipairs(data) do
local proceed = false
local proceed = false
−
if(idsList
== nil
) then
+
if(idsList) then
−
proceed = true
−
else
for j, qid in ipairs(idsList) do
for j, qid in ipairs(idsList) do
if(q.label == qid) then
if(q.label == qid) then
Line 61:
Line 59:
end
end
end
end
−
if (proceed or (
(
not filter[1]
or
not filter[2]) or (string.match(q[filter[2]], filter[1]
)
))) then
+
if (proceed or (
not idsList and
not filter[1]
and
not filter[2]) or (
filter[1] and filter[2] and
string.match(q[filter[2]], filter[1]))) then
if(q.alias_of) then
if(q.alias_of) then
table.insert(result, _.format(table_row_alias, {
table.insert(result, _.format(table_row_alias, {
Alephnaught27
4
edits