2019-05-14 Fred Gleason <fredg@paravelsystems.com>

* Modified the query in the Webget service to always return
	the lowest numbered matching cart/cut found.
This commit is contained in:
Fred Gleason
2019-05-14 16:40:22 -04:00
parent ca949be8f2
commit 1322487bb0
2 changed files with 5 additions and 1 deletions

View File

@@ -169,7 +169,8 @@ void MainObject::ripcConnectedData(bool state)
"CUTS.CUT_NAME from "+
"CART left join CUTS on CART.NUMBER=CUTS.CART_NUMBER where "+
"CART.TITLE=\""+RDEscapeString(title)+"\" && "+
QString().sprintf("CART.TYPE=%d",RDCart::Audio);
QString().sprintf("CART.TYPE=%d ",RDCart::Audio)+
"order by CUTS.CUT_NAME";
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
cartnum=RDCut::cartNumber(q->value(0).toString());