commit c67b23f3365eaad48f45a5f812e6f904b1d8e4f8
parent b1cb6b47626f2479d3063e8d7462ca566c587762
Author: Hugo Soucy <hugo@soucy.cc>
Date: Fri, 8 Oct 2021 09:50:47 -0400
Change the table insertion method
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/satelito/list.lua b/satelito/list.lua
@@ -74,7 +74,7 @@ function list.get_archives(contentdir)
title = metafile.title
}
- table.insert(archives_table[year][month], archive_info)
+ archives_table[year][month][#archives_table[year][month]+1] = archive_info
end
end
end
@@ -120,7 +120,7 @@ function list.get_tags(contentdir)
rellink = file.get_rellink(filepath, contentdir)
}
- table.insert(tags_table[keyword], tags_info)
+ tags_table[keyword][#tags_table[keyword]+1] = tags_info
end
end
end