From 3d4bd700b37694a5220c43d7f7d682ed2dbeea46 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 19 Apr 2018 15:13:17 +0000 Subject: [PATCH] Fix for list mix to use call count limit on initial count in hopper loading script, issue #1094 git-svn-id: svn://192.168.202.10@2967 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_VDhopper.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_VDhopper.pl b/agc_2-X/trunk/bin/AST_VDhopper.pl index 720a49e9..fd20dcd2 100644 --- a/agc_2-X/trunk/bin/AST_VDhopper.pl +++ b/agc_2-X/trunk/bin/AST_VDhopper.pl @@ -90,10 +90,11 @@ # 170531-0837 - Fixed issue #1019 # 180111-1559 - Added anyone_callback_inactive_lists option # 180301-1453 - Fix to allow for commented(#) lines in filters +# 180419-1109 - Fix for list mix to use call count limit on initial count, issue #1094 # # constants -$build = '180301-1453'; +$build = '180419-1109'; $DB=0; # Debug flag, set to 0 for no debug messages. Can be overriden with CLI --debug flag $US='__'; $MT[0]=''; @@ -2480,7 +2481,7 @@ foreach(@campaign_id) else { if (length($list_mix_dialableSQL)<3) {$list_mix_dialableSQL="called_count < 0";} - $stmtA = "SELECT count(*) FROM vicidial_list $VLforce_index where called_since_last_reset='N' and ($list_mix_dialableSQL) and ($all_gmtSQL[$i]) $lead_filter_sql[$i] $DLTsql[$i];"; + $stmtA = "SELECT count(*) FROM vicidial_list $VLforce_index where called_since_last_reset='N' and ($list_mix_dialableSQL) and ($all_gmtSQL[$i]) $lead_filter_sql[$i] $DLTsql[$i] $CCLsql[$i];"; } if ($DBX) {print " |$stmtA|\n";} $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;