fixup! run gofumpt / format comments / comment blocks

This commit is contained in:
sentriz
2020-03-19 18:30:49 +00:00
parent 4b32bc0e4d
commit 22992c9941
4 changed files with 15 additions and 13 deletions

View File

@@ -126,14 +126,14 @@ func (s *Scanner) Start() error {
s.db.Exec(`
DELETE FROM albums
WHERE tag_artist_id NOT NULL
AND NOT EXISTS ( SELECT 1 FROM tracks
WHERE tracks.album_id=albums.id
AND NOT EXISTS ( SELECT 1 FROM tracks
WHERE tracks.album_id=albums.id
)`)
// delete artists without albums
s.db.Exec(`
DELETE FROM artists
WHERE NOT EXISTS ( SELECT 1 from albums
WHERE albums.tag_artist_id=artists.id
WHERE NOT EXISTS ( SELECT 1 from albums
WHERE albums.tag_artist_id=artists.id
)`)
// finish up
strNow := strconv.FormatInt(time.Now().Unix(), 10)