diff --git a/db/dbfunctions.go b/db/dbfunctions.go index 7d001ea..69c0c3b 100644 --- a/db/dbfunctions.go +++ b/db/dbfunctions.go @@ -206,7 +206,7 @@ func UpdatePodcastItemFileSize(podcastItemId string, size int64) error { func GetAllPodcastItemsWithoutImage() (*[]PodcastItem, error) { var podcastItems []PodcastItem - result := DB.Preload(clause.Associations).Where("local_image is ?", nil).Where("image != ?", "").Where("download_status=?", Downloaded).Order("created_at desc").Find(&podcastItems) + result := DB.Preload(clause.Associations).Where("local_image = ?", "").Where("image != ?", "").Where("download_status=?", Downloaded).Order("created_at desc").Find(&podcastItems) //fmt.Println("To be downloaded : " + string(len(podcastItems))) return &podcastItems, result.Error }