1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Don't consider artists with a playcount of 1 as part of the charts.

This commit is contained in:
Christian Muehlhaeuser
2013-06-08 12:47:26 +02:00
parent 073cbf8e03
commit 4c46425cbb

View File

@@ -53,8 +53,10 @@ DatabaseCommand_ArtistStats::exec( DatabaseImpl* dbi )
QHash< QString, unsigned int > charts;
while ( query.next() )
{
chartCount++;
if ( query.value( 0 ).toUInt() < 2 )
break;
chartCount++;
if ( chartPos == 0 && query.value( 1 ).toUInt() == artistId )
{
chartPos = chartCount;