diff --git a/plugins/fetch-scrobbles/index.js b/plugins/fetch-scrobbles/index.js index 92d936fa..83468372 100644 --- a/plugins/fetch-scrobbles/index.js +++ b/plugins/fetch-scrobbles/index.js @@ -6,7 +6,7 @@ const getKeys = (months = 1) => { const currentDate = DateTime.now() const weeks = Math.floor((currentDate.daysInMonth * months) / 7) let count = 0 - const keys = [] + const keys = [`${currentDate.year}-${currentDate.weekNumber}`] while (count < weeks) { const weeks = 1 * (count + 1) @@ -15,8 +15,6 @@ const getKeys = (months = 1) => { count++; } - keys.push(`${currentDate.year}-${currentDate.weekNumber}`) - return keys }