From 26df5ba81d5e1a4cd046baf244838489b20d8a19 Mon Sep 17 00:00:00 2001 From: cwilvx Date: Mon, 14 Oct 2024 17:48:10 +0300 Subject: [PATCH] hide "new" on artist report for all time period --- app/api/scrobble/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/scrobble/__init__.py b/app/api/scrobble/__init__.py index 76e4364d..4a9133a2 100644 --- a/app/api/scrobble/__init__.py +++ b/app/api/scrobble/__init__.py @@ -233,7 +233,7 @@ def get_top_artists(query: ChartItemsQuery): return { "artists": response, "scrobbles": { - "text": f"{new_artists} new artist{'' if new_artists == 1 else 's'} played", + "text": f"{new_artists} {'new' if query.duration != 'alltime' else ''} {ngettext('artist', 'artists', new_artists)}", "trend": scrobble_trend, "dates": format_date(start_time, end_time), },