mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
* Don't consider tracks with a playcount of 1 as part of the charts.
This commit is contained in:
parent
3824034113
commit
073cbf8e03
@ -64,8 +64,10 @@ DatabaseCommand_TrackStats::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() == trackId )
|
||||
{
|
||||
chartPos = chartCount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user