From a6ad2f9e5fa32ca676ee32040e383b1d2f230e4a Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 17 Dec 2019 19:37:04 -0800 Subject: [PATCH] Fix a bug where inactive items still in the feed were deleted --- inquisitor/importer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inquisitor/importer.py b/inquisitor/importer.py index d17ac87..b27113b 100644 --- a/inquisitor/importer.py +++ b/inquisitor/importer.py @@ -95,9 +95,9 @@ def update_source(source_name, fetch_new): prior_item = prior_items[item['id']] if prior_item['active']: populate_old(prior_item, item) - # Remove the id from the list to track its continued presence - # in the source's queue of new items. - del prior_items[item['id']] + # Remove the id from the list to track its continued presence + # in the source's queue of new items. + del prior_items[item['id']] # Any remaining extant items are considered old. Old items are removed # when they are both inactive and past their ttl date.