From 4f78b103d4b1cb157fe3c38d0c13a6002dc0e557 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 23 Jul 2024 09:45:45 -0500 Subject: gtd: fixed a bug in updater --- app/gtd/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/gtd/views.py b/app/gtd/views.py index e0381d2..709766e 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -351,7 +351,7 @@ class UpdateDateView(RedirectView): def get_redirect_url(self, *args, **kwargs): for post in WiredPost.objects.all(): if post.url: - content = requests.get(url) + content = requests.get(post.url) soup = BeautifulSoup(content.text, 'html.parser') time = datetime.strptime(soup.time['datetime'][:-6], "%Y-%m-%dT%H:%M:%S").date() if time != post.date_last_pub: -- cgit v1.2.3-70-g09d2