summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-08-10 16:15:06 -0500
committerluxagraf <sng@luxagraf.net>2023-08-10 16:15:06 -0500
commit015bdab536631d522d7abd1c03c608c81de30924 (patch)
treefa2a1eeb04af7903bdb97edb1461b996b8a45fc7
parent0d9280ffc05b968b6c7be8d2b541bd56abd73716 (diff)
posts: fixed bug in command
-rw-r--r--app/posts/management/commands/rss_updater.py7
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