Skip to content

Commit

Permalink
Fixed logic for skipping test e-mails (when is_test==1).
Browse files Browse the repository at this point in the history
  • Loading branch information
kzalewski committed Feb 25, 2013
1 parent 0d762d0 commit d2dec31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/rebuild_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REPLACE INTO summary (
AND mailing_id != 0
AND instance.servername != ''
) AS affected_messages USING (message_id)
WHERE queue_id != 0 AND is_test != 0
WHERE queue_id != 0 AND is_test = 0
GROUP BY instance_name, install_class, mailing_id, event_type
);

2 changes: 1 addition & 1 deletion resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ DELIMITER |

-- If queue_id=0 we don't process the event
-- we need to exclude these from summaries.
IF NEW.queue_id <> 0 AND NEW.is_test <> 0 THEN
IF NEW.queue_id <> 0 AND NEW.is_test = 0 THEN

INSERT INTO summary(
mailing_id, instance, install_class, event, category, count, dt_first, dt_last
Expand Down

0 comments on commit d2dec31

Please sign in to comment.