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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user