Skip to content

Commit

Permalink
I think I fixed a couple of bugs which caused us to see "0" for
Browse files Browse the repository at this point in the history
"submissions" and "sub/comments" in daily email.  We'll see.
  • Loading branch information
jamiemccarthy committed Mar 12, 2002
1 parent 1d6a9ea commit aca41c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/Stats/Stats.pm
Expand Up @@ -93,15 +93,16 @@ sub countSubmissionsByDay {


my $used = $self->sqlCount( my $used = $self->sqlCount(
'submissions', 'submissions',
"date BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'" "time BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'"
); );
} }


######################################################## ########################################################
sub countSubmissionsByCommentIPID { sub countSubmissionsByCommentIPID {
my($self, $yesterday, $ipids) = @_; my($self, $yesterday, $ipids) = @_;
return unless @$ipids; return unless @$ipids;
my $in_list = join(",", @$ipids); my $slashdb = getCurrentDB();
my $in_list = join(",", map { $slashdb->sqlQuote($_) } @$ipids);


my $used = $self->sqlCount( my $used = $self->sqlCount(
'comments', 'comments',
Expand Down

0 comments on commit aca41c5

Please sign in to comment.