Changes

no edit summary
Line 367: Line 367:  
             local ship_data = seasonal_data.ships[ship]
 
             local ship_data = seasonal_data.ships[ship]
 
             for i, quote in ipairs(ship_data) do
 
             for i, quote in ipairs(ship_data) do
                 table.insert(result, format{
+
                 if not Utils.find(args, string.format("%s/%s", ship, quote.line or "")) then
                    quote_template,
+
                    table.insert(result, format{
                    id_string = i > 1 and "" or format{
+
                        quote_template,
                         id_string_template,
+
                        id_string = i > 1 and "" or format{
 +
                            id_string_template,
 +
                            ship = ship,
 +
                        },
 +
                        ship_row = i > 1 and "" or format{
 +
                            ship_row_template,
 +
                            rowspan = #ship_data,
 +
                            ship = ship,
 +
                         },
 
                         ship = ship,
 
                         ship = ship,
                    },
+
                         season = quote.season or season,
                    ship_row = i > 1 and "" or format{
+
                        line = quote.line and " " .. quote.line or "",
                         ship_row_template,
+
                        ja = quote.ja or "",
                        rowspan = #ship_data,
+
                        en = quote.en or "",
                        ship = ship,
+
                        note = (quote.line and "''" .. quote.line .. "''<br>" or "") .. (quote.note or ""),
                    },
+
                    })
                    ship = ship,
+
                end
                    season = season,
  −
                    line = quote.line and " " .. quote.line or "",
  −
                    ja = quote.ja or "",
  −
                    en = quote.en or "",
  −
                    note = (quote.line and "''" .. quote.line .. "''<br>" or "") .. (quote.note or ""),
  −
                })
   
             end
 
             end
 
         end
 
         end
cssedit, gkautomate
6,926

edits