From 02fab2a4dc8bb71e3dd127c6056387f4a5910ce9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 15 Jan 2016 11:12:10 -0800 Subject: [PATCH] Fix future_dates=ignore_entry scrub The ignore_entry setting for the future_dates scrub incorrectly compared dates to time.time() (a float) rather than time.gmtime() (a time_struct). --- planet/scrub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/scrub.py b/planet/scrub.py index fef5c22..ef37753 100644 --- a/planet/scrub.py +++ b/planet/scrub.py @@ -85,7 +85,7 @@ def scrub(feed_uri, data): del entry['updated_parsed'] del entry['updated'] elif future_dates == 'ignore_entry': - now = time.time() + now = time.gmtime() if data.feed.has_key('updated_parsed') and data.feed['updated_parsed']: if data.feed['updated_parsed'] > now: del data.feed['updated_parsed'] data.entries = [entry for entry in data.entries if