summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-08-10 16:13:55 -0500
committerluxagraf <sng@luxagraf.net>2023-08-10 16:13:55 -0500
commit0d9280ffc05b968b6c7be8d2b541bd56abd73716 (patch)
treea873f1d42a1e37d4fdaf2eede29e9f28957d3748
parent0b689714d9580ad4a0e4f4399df70ea8d5448040 (diff)
posts: moved imports to command func
-rw-r--r--app/posts/management/commands/rss_updater.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/posts/management/commands/rss_updater.py b/app/posts/management/commands/rss_updater.py
index 7ac26e6..0e17933 100644
--- a/app/posts/management/commands/rss_updater.py
+++ b/app/posts/management/commands/rss_updater.py
@@ -13,6 +13,11 @@ 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):