diff --git a/main.go b/main.go index d4a869e..3d9183a 100644 --- a/main.go +++ b/main.go @@ -279,7 +279,9 @@ func (web *Web) pruneDB() { IDs = append(IDs, b.ID) } } - web.db.Delete(&FilterOutput{}, IDs) + if len(IDs) > 0 { + web.db.Delete(&FilterOutput{}, IDs) + } } }