From 015bdab536631d522d7abd1c03c608c81de30924 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 10 Aug 2023 16:15:06 -0500 Subject: posts: fixed bug in command --- app/posts/management/commands/rss_updater.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/posts/management/commands/rss_updater.py b/app/posts/management/commands/rss_updater.py index 0e17933..ad8551b 100644 --- a/app/posts/management/commands/rss_updater.py +++ b/app/posts/management/commands/rss_updater.py @@ -13,14 +13,9 @@ run from a cronscript that looks line this: """ class Command(BaseCommand): - import datetime - import feedparser - from urllib.parse import urlparse - - from posts.models import PostStatus, Post help = "Update all published posts" - def is_deal(tags): + def is_deal(self, tags): for tag in tags: if tag['term'] == "Deals": return True -- cgit v1.2.3-70-g09d2