Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support selection of cuts that have a start, but no end, date #849

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -20959,3 +20959,5 @@
of the 'direct' name space.
2022-11-21 Fred Gleason <[email protected]>
* Incremented the package version to 3.6.6int0.
2022-12-15 Robert Chipperfield <[email protected]>
* Supported selection of cuts that have a start, but no end date
5 changes: 2 additions & 3 deletions lib/rdcart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ bool RDCart::selectCut(QString *cut,const QTime &time) const
"LOCAL_COUNTER,"+
"LAST_PLAY_DATETIME "+
"from CUTS where ("+
"((START_DATETIME<=\""+datetime_str+"\")&&"+
"(END_DATETIME>=\""+datetime_str+"\"))||"+
"(START_DATETIME is null))&&"+
"(START_DATETIME is null || START_DATETIME<=\""+datetime_str+"\")&&"+
"(END_DATETIME is null || END_DATETIME>=\""+datetime_str+"\"))&&"+
"(((START_DAYPART<=\""+time_str+"\")&&"+
"(END_DAYPART>=\""+time_str+"\")||"+
"START_DAYPART is null))&&"+
Expand Down