chore: misc cleanup
This commit is contained in:
parent
794ba63876
commit
1806afc9aa
6 changed files with 7 additions and 2 deletions
|
@ -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),
|
||||
|
|
Reference in a new issue