1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-25 15:01:11 +02:00

Add missing date selection

This commit is contained in:
Uwe L. Korn
2013-07-20 15:10:23 +02:00
parent c369d8ab62
commit 86c31aa7fb

View File

@@ -114,9 +114,13 @@ DatabaseCommand_CalculatePlaytime::exec( DatabaseImpl *dbi )
" JOIN track t ON pi.trackname = t.name "
" JOIN artist a ON a.name = pi.artistname AND t.artist = a.id "
" JOIN playback_log pl ON pl.track = t.id "
" WHERE guid IN (%1); "
" WHERE pi.guid IN (%1); "
" AND pl.playtime >= %2 AND pl.playtime <= %3 "
)
.arg( d->plEntryIds.join(", ") );
.arg( d->plEntryIds.join(", ") )
.arg( d->from.toTime_t() )
.arg( d->to.toTime_t() );
}
TomahawkSqlQuery query = dbi->newquery();