From 336411ad4aaa87c5f744e05d4719ab6da7a3a734 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Mon, 4 Oct 2010 02:07:31 +0000 Subject: [PATCH] Only count items of this importer. --- plugins/FeedsProcessor.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index b30678e1..017306ef 100644 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -84,7 +84,7 @@ abstract class FeedsProcessor extends FeedsPlugin { * Counts the number of items imported by this processor. */ public function itemCount(FeedsSource $source) { - return db_query("SELECT count(*) FROM {feeds_item} WHERE entity_type = :entity_type AND feed_nid = :feed_nid", array(':entity_type' => $this->entity_type, ':feed_nid' => $source->feed_nid))->fetchField(); + return db_query("SELECT count(*) FROM {feeds_item} WHERE id = :id AND entity_type = :entity_type AND feed_nid = :feed_nid", array(':id' => $this->id, ':entity_type' => $this->entity_type, ':feed_nid' => $source->feed_nid))->fetchField(); } /** -- GitLab