Cleaning old data from artists indexes

This commit is contained in:
Deluan
2016-03-26 22:29:26 -04:00
parent 107321219a
commit 0e20910061
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -317,6 +317,7 @@ func (i *Importer) findGroup(ig utils.IndexGroups, name string) string {
}
func (i *Importer) saveIndex(artistIndex map[string]tempIndex) error {
i.idxRepo.DeleteAll()
for k, temp := range artistIndex {
idx := &domain.ArtistIndex{Id: k}
for _, v := range temp {