Skip to content
Snippets Groups Projects
Commit 336411ad authored by Alex Barth's avatar Alex Barth
Browse files

Only count items of this importer.

parent 19346572
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment