diff options
author | luxagraf <sng@luxagraf.net> | 2023-08-10 16:15:06 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-08-10 16:15:06 -0500 |
commit | 015bdab536631d522d7abd1c03c608c81de30924 (patch) | |
tree | fa2a1eeb04af7903bdb97edb1461b996b8a45fc7 | |
parent | 0d9280ffc05b968b6c7be8d2b541bd56abd73716 (diff) |
posts: fixed bug in command
-rw-r--r-- | app/posts/management/commands/rss_updater.py | 7 |
1 files changed, 1 insertions, 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 |