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:18, 15 January 2020
50 bytes added
,
4 years ago
Undo revision 1128838 by
Alephnaught27
(
talk
)
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) then
+
if(idsList
== nil
) 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 59:
Line 61:
end
end
end
end
−
if (proceed or (filter[1]
and
filter[2]
and
(string.match(q[filter[2]], filter[1])))) then
+
if (proceed or (
(not
filter[1]
or not
filter[2]
) or
(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