mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Don't consider artists with a playcount of 1 as part of the charts.
This commit is contained in:
@@ -53,8 +53,10 @@ DatabaseCommand_ArtistStats::exec( DatabaseImpl* dbi )
|
|||||||
QHash< QString, unsigned int > charts;
|
QHash< QString, unsigned int > charts;
|
||||||
while ( query.next() )
|
while ( query.next() )
|
||||||
{
|
{
|
||||||
chartCount++;
|
if ( query.value( 0 ).toUInt() < 2 )
|
||||||
|
break;
|
||||||
|
|
||||||
|
chartCount++;
|
||||||
if ( chartPos == 0 && query.value( 1 ).toUInt() == artistId )
|
if ( chartPos == 0 && query.value( 1 ).toUInt() == artistId )
|
||||||
{
|
{
|
||||||
chartPos = chartCount;
|
chartPos = chartCount;
|
||||||
|
Reference in New Issue
Block a user