diff --git a/blogs/management/commands/check_feeds.py b/blogs/management/commands/check_feeds.py index fad09c8..a986823 100644 --- a/blogs/management/commands/check_feeds.py +++ b/blogs/management/commands/check_feeds.py @@ -142,15 +142,15 @@ class Command(BaseCommand): ) ) if description: - description[:200] += "..." + desc = description[:200] + "..." else: - description = "" + desc = "" instance = models.Article.objects.create( title=article.title, author_name=author_name, url=article.link, - description=description, + description=desc, updateddate=date_to_tz_aware( article.updated_parsed ), @@ -224,15 +224,15 @@ class Command(BaseCommand): ) ) if description: - description[:200] += "..." + desc = description[:200] + "..." else: - description = "" + desc = "" instance = models.Edition.objects.create( title=edition.title, author_name=author_name, url=edition.link, - description=description, + description=desc, updateddate=date_to_tz_aware(edition.updated_parsed), newsletter=newsletter, pubdate=date_to_tz_aware(edition.published_parsed), diff --git a/requirements.txt b/requirements.txt index 7da8b1c..38747b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,9 +4,9 @@ Django==4.2.11 environs==9.5.0 feedparser==6.0.10 psycopg2==2.9.5 -requests==2.32.3 +requests==2.32.0 # dev black==24.3.0 -pylint==3.0.3 +pylint==3.0.3 \ No newline at end of file