Skip to content

Commit 8f64b55

Browse files
committed
Proceed to pinning step even if there are no new articles posted
1 parent c698e1d commit 8f64b55

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pgweb/news/management/commands/social_post.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def handle(self, *args, **options):
3434
raise CommandError("Failed to get advisory lock, existing social_post process stuck?")
3535

3636
articles = list(NewsArticle.objects.filter(modstate=ModerationState.APPROVED, date__gt=datetime.now() - timedelta(days=7)).exclude(postedto__has_keys=allprovidernames).order_by('date'))
37-
if not len(articles):
38-
return
3937

4038
for i, a in enumerate(articles):
4139
if i != 0:

0 commit comments

Comments
 (0)