diff options
-rw-r--r-- | app/posts/management/commands/rss_updater.py | 5 |
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): |