1
0
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:
Christian Muehlhaeuser 2013-06-08 12:29:51 +02:00
parent 3824034113
commit 073cbf8e03

View File

@ -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;