web: Skip empty keys for rendering Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
1 files changed, 4 insertions(+), 0 deletions(-) M web/main.go
M web/main.go => web/main.go +4 -0
@@ 82,6 82,10 @@ func dbFromS3() { var entry Entry key := strings.ReplaceAll(object.Key, Config.S3.GoodPrefix, "") + if key == "" { + continue + } + DB.Find(&entry, "name = ?", key) if entry.ID == 0 { entry.Name = key