Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Cvs P5ee > [svn:p5ee] r101...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 608 of 694
Post > Topic >>

[svn:p5ee] r10189 - p5ee/trunk/App-WorkQueue/lib/App/WorkQueue

by spadkins@[EMAIL PROTECTED] Nov 7, 2007 at 11:56 AM

Author: spadkins
Date: Wed Nov  7 11:56:24 2007
New Revision: 10189

Modified:
   p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm

Log:
fix bug in status counts by reseting all to 0 before updating their status

Modified: p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm
==============================================================================
--- p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm	(original)
+++ p5ee/trunk/App-WorkQueue/lib/App/WorkQueue/Repository.pm	Wed Nov  7
11:56:24 2007
@[EMAIL PROTECTED]
 -603,6 +603,9 @[EMAIL PROTECTED]
         }
     }
     my $rows = $db->get_rows($self->{table}, $params, [ $key_attrib,
$count_expr ], { group_by => [ $key_attrib ] });
+    foreach my $key (keys(%$counts)) {
+        $counts->{$key} = 0;
+    }
     foreach my $row (@[EMAIL PROTECTED]
) {
         $counts->{$row->[0]} = $row->[1];
     }




 1 Posts in Topic:
[svn:p5ee] r10189 - p5ee/trunk/App-WorkQueue/lib/App/WorkQueue
spadkins@[EMAIL PROTECTED  2007-11-07 11:56:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 15:05:03 CDT 2008.