From 22b3f8e9b9886f92c94886755352d6843e6a9a05 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 27 Jan 2018 04:46:28 +0100 Subject: [PATCH] Removed redundant variable --- platypush/backend/http/request/rss/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platypush/backend/http/request/rss/__init__.py b/platypush/backend/http/request/rss/__init__.py index 94c1483d8..fac5c6b4c 100644 --- a/platypush/backend/http/request/rss/__init__.py +++ b/platypush/backend/http/request/rss/__init__.py @@ -78,9 +78,7 @@ class GetRssUpdates(HttpRequest): source_record = self._get_or_create_source(session=session) session.add(source_record) parse_start_time = datetime.datetime.utcnow() - entries = [] - last_updated_at = source_record.last_updated_at if source_record.title != feed.feed['title']: source_record.title = feed.feed['title'] @@ -88,11 +86,8 @@ class GetRssUpdates(HttpRequest): for entry in feed.entries: entry_timestamp = datetime.datetime(*entry.published_parsed[:6]) - if last_updated_at is None: last_updated_at = entry_timestamp if source_record.last_updated_at is None \ or entry_timestamp > source_record.last_updated_at: - last_updated_at = max(entry_timestamp, last_updated_at) - entry.content = self._parse_entry_content(entry.link) \ if self.mercury_api_key else None