chore: misc cleanup

This commit is contained in:
Cory Dransfeldt 2024-05-05 16:28:41 -07:00
parent 794ba63876
commit 1806afc9aa
No known key found for this signature in database
6 changed files with 7 additions and 2 deletions

View file

@ -8,6 +8,7 @@ export default async function () {
const artists = JSON.parse(await readFile('./src/_data/json/artists-map.json', 'utf8'));
const albums = JSON.parse(await readFile('./src/_data/json/albums-map.json', 'utf8'));
const recent = JSON.parse(await readFile('./src/_data/json/scrobbles-window.json', 'utf8'))['data'].reverse().splice(0,10)
return {
recent: buildTracksWithArt(recent, artists, albums),
month: buildChart(monthChart['data'], artists, albums),