Module:Medical cases chart/data: Difference between revisions

Content deleted Content added
Add logic for change view format
Fixed off-by-one error
 
(2 intermediate revisions by the same user not shown)
Line 101:
for i = #records, 1, -1 do
local record = records[i]
if i < #records and record.streak > 3 then
for j = i, i - record.streak + 3, -1 do
table.remove(records, j)