Skip to content

Commit

Permalink
Change filter method for getting different top artists
Browse files Browse the repository at this point in the history
  • Loading branch information
coopw1 committed Jul 1, 2024
1 parent f777b43 commit 3e6c360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/general/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = {
"all_time",
false,
"",
10
100
);

const compareUserTop = await getTopStatistics(
Expand All @@ -185,7 +185,7 @@ module.exports = {
"all_time",
false,
"",
10
100
);

const userList = userTop.artists;
Expand All @@ -200,7 +200,7 @@ module.exports = {
);

description = description + "\n\n**Different top artists:**";
for (let i = 0; i < unique.length; i++) {
for (let i = 0; i < 10; i++) {
if (unique[i].artist_mbid !== null) {
description += `\n**[${unique[i].artist_name}](https://listenbrainz.org/artist/${unique[i].artist_mbid})** - ${unique[i].listen_count} plays`;
} else {
Expand Down

0 comments on commit 3e6c360

Please sign in to comment.