Fixed bug

This commit is contained in:
dbroqua 2020-01-07 16:26:09 +01:00
parent 68217fac15
commit 8df18880cb

View File

@ -82,7 +82,7 @@ class When extends Queries {
return true return true
} }
for (let i = 1; i < items.length; i + 1) { for (let i = 0; i < items.length; i += 1) {
if (artists.indexOf(items[i].artist) === -1) { if (artists.indexOf(items[i].artist) === -1) {
artists.push(items[i].artist) artists.push(items[i].artist)
} }
@ -91,7 +91,7 @@ class When extends Queries {
} }
} }
botSay(where, `Pour cette période tu as pu entendre ${artists.length} différents pour un total de ${songs.length} morceaux différents !`) botSay(where, `Pour cette période tu as pu entendre ${artists.length} artistes différents pour un total de ${songs.length} morceaux différents !`)
}) })
.catch(err => { .catch(err => {
console.error('ERR:', err) console.error('ERR:', err)