diff options
author | luxagraf <sng@luxagraf.net> | 2024-07-23 09:45:45 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-07-23 09:45:45 -0500 |
commit | 4f78b103d4b1cb157fe3c38d0c13a6002dc0e557 (patch) | |
tree | 7428ff314f51cbd102949a2fd3d723a177491fdf /app/gtd/views.py | |
parent | 9b2f5bb2de9e77b90207b001aaafaf9a148a6272 (diff) |
gtd: fixed a bug in updater
Diffstat (limited to 'app/gtd/views.py')
-rw-r--r-- | app/gtd/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |