mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 22:30:13 +01:00
2025-06-21 Fred Gleason <fredg@paravelsystems.com>
* Restored the 'Show Only First 100 Carts' checkbox to the 'RDCartFilter' widget. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// The cart slot widget.
|
||||
//
|
||||
// (C) Copyright 2012-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2012-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -613,11 +613,12 @@ unsigned RDCartSlot::SelectCart(const QString &svcname,unsigned msecs)
|
||||
"`AUTOFILLS`.`CART_NUMBER`,"+ // 00
|
||||
"`CART`.`FORCED_LENGTH` "+ // 01
|
||||
"from "+
|
||||
"`AUTOFILLS` left join `CART` on `AUTOFILLS`.`CART_NUMBER`=`CART`.`NUMBER`"+
|
||||
QString().
|
||||
sprintf(" where (`CART`.`FORCED_LENGTH`>%u)&&(`CART`.`FORCED_LENGTH`<%u)&&",
|
||||
(unsigned)((double)msecs*RD_TIMESCALE_MIN),
|
||||
(unsigned)((double)msecs*RD_TIMESCALE_MAX))+
|
||||
"`AUTOFILLS` left join `CART` "+
|
||||
"on `AUTOFILLS`.`CART_NUMBER`=`CART`.`NUMBER` where "+
|
||||
QString::asprintf("(`CART`.`FORCED_LENGTH`>%u)&&",
|
||||
(unsigned)((double)msecs*RD_TIMESCALE_MIN))+
|
||||
QString::asprintf("(`CART`.`FORCED_LENGTH`<%u)&&",
|
||||
(unsigned)((double)msecs*RD_TIMESCALE_MAX))+
|
||||
"(`SERVICE`='"+RDEscapeString(svcname)+"')";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
|
||||
Reference in New Issue
Block a user