commit 4691ac9703f38705679da629a1c9df2be12959c4
parent 9c92899b8c7797cd065196b8eeeed77083701d68
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